Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NearRealTimeCTDAS
CTDAS
Commits
cb29d4ca
Commit
cb29d4ca
authored
Feb 12, 2013
by
Ingrid Luijkx
Browse files
Corrected reading in of may_reject and may_localize keys from sites_weights.rc
parent
c9882c0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
da/ct/obspack.py
View file @
cb29d4ca
...
...
@@ -295,8 +295,8 @@ class ObsPackObservations(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_localize
=
(
"TRUE"
in
may_localize
.
upper
()
)
may_reject
=
(
"TRUE"
in
may_reject
.
upper
()
)
SiteCategories
[
name
]
=
{
'category'
:
name
,
'error'
:
error
,
'may_localize'
:
may_localize
,
'may_reject'
:
may_reject
}
#print name,SiteCategories[name]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment