Skip to content
Snippets Groups Projects
Commit 2130bf65 authored by Harriet Brown's avatar Harriet Brown
Browse files

Fix bug in merging detectors with lists

This commit fixes a bug with the _load_qlims function in polaris_algs that caused a failure if given a list of limits.
parent d441c3a4
No related branches found
No related tags found
No related merge requests found
......@@ -170,8 +170,8 @@ def _load_qlims(q_lims):
except IOError as exc:
raise RuntimeError("q_lims path is not valid: {}".format(exc))
elif isinstance(q_lims, (list, tuple)) or isinstance(q_lims, np.ndarray):
q_min = q_lims[0, :]
q_max = q_lims[1, :]
q_min = q_lims[0]
q_max = q_lims[1]
else:
raise RuntimeError("q_lims type is not valid. Expected a string filename or an array.")
return q_min, q_max
......
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