We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcaf612 commit 3aa5cf5Copy full SHA for 3aa5cf5
xcoll/colldb.py
@@ -36,7 +36,7 @@ def _dict_keys_to_lower(dct):
36
else:
37
return dct
38
39
-
+# TODO: need better handling of beam argument (not hardcoded 'b1' and 'b2' strings)
40
def _get_coll_dct_by_beam(coll, beam):
41
# The dictionary can be a CollimatorDatabase for a single beam (beam=None)
42
# or for both beams (beam='b1' or beam='b2)
@@ -51,7 +51,7 @@ def _get_coll_dct_by_beam(coll, beam):
51
raise ValueError("Need to specify a beam, because the given dict is for both beams!")
52
return coll[beam]
53
54
- elif len(beam_in_db) == 1:
+ elif len(beam_in_db) == 1 and beam_in_db[0].lower() in ['b1','b2']:
55
if beam is None:
56
beam = beam_in_db[0].lower()
57
elif beam != beam_in_db[0].lower():
0 commit comments