Skip to content

Commit 3d2609e

Browse files
committed
Disable I19 collection merging
1 parent 2d26a94 commit 3d2609e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/dlstbx/mimas/i19.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)