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,6 +166,11 @@ 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
169174 for params in extra_params :
170175 tasks .extend (
171176 [
@@ -178,7 +183,7 @@ def handle_i19_end(scenario: mimas.MimasScenario, **kwargs) -> List[mimas.Invoca
178183 else "autoprocessing-multi-xia2-smallmolecule-nexus"
179184 ),
180185 source = "automatic" ,
181- sweeps = tuple (scenario . getsweepslistfromsamedcg ),
186+ sweeps = tuple (dcid_sweep ),
182187 displayname = "xia2 dials" ,
183188 parameters = (
184189 * params ,
@@ -195,7 +200,7 @@ def handle_i19_end(scenario: mimas.MimasScenario, **kwargs) -> List[mimas.Invoca
195200 else "autoprocessing-multi-xia2-smallmolecule-d-a-nexus"
196201 ),
197202 source = "automatic" ,
198- sweeps = tuple (scenario . getsweepslistfromsamedcg ),
203+ sweeps = tuple (dcid_sweep ),
199204 displayname = "xia2 dials-aimless" ,
200205 parameters = (
201206 * params ,
You can’t perform that action at this time.
0 commit comments