File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,11 +166,6 @@ def handle_i19_end(scenario: mimas.MimasScenario, **kwargs) -> List[mimas.Invoca
166166 if scenario .dcclass == mimas .MimasDCClass .DIAMOND_ANVIL_CELL :
167167 xia2_dials_extra_params = (* XIA2_DIALS_DAC_PARAMS ,)
168168
169- # Find the scenario sweep that matches this DCID
170- dcid_sweep = [
171- x for x in scenario .getsweepslistfromsamedcg if x .DCID == scenario .DCID
172- ]
173- assert len (dcid_sweep ) == 1
174169 for params in extra_params :
175170 tasks .extend (
176171 [
@@ -183,7 +178,7 @@ def handle_i19_end(scenario: mimas.MimasScenario, **kwargs) -> List[mimas.Invoca
183178 else "autoprocessing-multi-xia2-smallmolecule-nexus"
184179 ),
185180 source = "automatic" ,
186- sweeps = tuple (dcid_sweep ),
181+ sweeps = tuple (scenario . getsweepslistfromsamedcg ),
187182 displayname = "xia2 dials" ,
188183 parameters = (
189184 * params ,
@@ -200,7 +195,7 @@ def handle_i19_end(scenario: mimas.MimasScenario, **kwargs) -> List[mimas.Invoca
200195 else "autoprocessing-multi-xia2-smallmolecule-d-a-nexus"
201196 ),
202197 source = "automatic" ,
203- sweeps = tuple (dcid_sweep ),
198+ sweeps = tuple (scenario . getsweepslistfromsamedcg ),
204199 displayname = "xia2 dials-aimless" ,
205200 parameters = (
206201 * params ,
You can’t perform that action at this time.
0 commit comments