Skip to content
Snippets Groups Projects
Commit c9882c0f authored by Ingrid Luijkx's avatar Ingrid Luijkx
Browse files

Corrected reading in of may_reject and may_localize keys from sites_weights.rc

parent 0a7146f6
No related branches found
No related tags found
No related merge requests found
......@@ -283,8 +283,8 @@ class CtObservations(Observation):
name, error, may_localize, may_reject = SitesWeights[key].split(';')
name = name.strip().lower()
error = float(error)
may_localize = bool(may_localize)
may_reject = bool(may_reject)
may_reject = ("TRUE" in may_reject.upper())
may_localize = ("TRUE" in may_localize.upper())
SiteCategories[name] = {'error':error, 'may_localize':may_localize, 'may_reject':may_reject}
#print name,SiteCategories[name]
......@@ -494,4 +494,4 @@ if __name__ == "__main__":
new = obs.Data.unflagged()
print new
#new = obs.Data.selectsite("10")
#print new
\ No newline at end of file
#print new
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment