Skip to content
Snippets Groups Projects

Select Mass Position channels

Merged Lan Dam requested to merge i22_masspos into master
1 unresolved thread
1 file
+ 1
4
Compare changes
  • Side-by-side
  • Inline
@@ -214,7 +214,6 @@ def check_masspos(mp_data: Dict[str, Dict], sel_key: Union[tuple, str],
:param include_mp123: if mass position channels 1,2,3 are requested
:param include_mp456: if mass position channels 4,5,6 are requested
"""
not_included_mp = []
included_mp = []
for chan_id in mp_data.keys():
included_mp.append(chan_id[-1])
@@ -225,9 +224,7 @@ def check_masspos(mp_data: Dict[str, Dict], sel_key: Union[tuple, str],
if include_mp456:
req_mp += ['4', '5', '6']
for mp in req_mp:
if mp not in included_mp:
not_included_mp.append(mp)
not_included_mp = [mp for mp in req_mp if mp not in included_mp]
if not_included_mp != []:
raise Exception(f"Data set {sel_key} doesn't include mass position "
Loading