@@ -39,9 +39,6 @@ def build_conformational_states(
3939 data_container : Any ,
4040 levels : dict [Any , list [str ]],
4141 groups : dict [int , list [Any ]],
42- start : int ,
43- end : int ,
44- step : int ,
4542 bin_width : float ,
4643 progress : _RichProgressSink | None = None ,
4744 ) -> tuple [dict [UAKey , list [str ]], list [list [str ]], dict [UAKey , int ], list [int ]]:
@@ -62,9 +59,6 @@ def build_conformational_states(
6259 levels: Mapping of molecule_id -> iterable of enabled level names
6360 (e.g., ["united_atom", "residue"]).
6461 groups: Mapping of group_id -> list of molecule_ids.
65- start: Inclusive start frame index.
66- end: Exclusive end frame index.
67- step: Frame stride.
6862 bin_width: Histogram bin width in degrees used when identifying peak
6963 dihedral populations.
7064 progress: Optional progress sink (e.g., from
@@ -81,7 +75,6 @@ def build_conformational_states(
8175
8276 Notes:
8377 - This function advances progress once per group_id.
84- - Frame slicing arguments (start/end/step) are forwarded to downstream
8578 helpers as implemented in this module.
8679 """
8780 number_groups = len (groups )
@@ -131,9 +124,6 @@ def build_conformational_states(
131124 dihedrals_ua = dihedrals_ua ,
132125 dihedrals_res = dihedrals_res ,
133126 bin_width = bin_width ,
134- start = start ,
135- end = end ,
136- step = step ,
137127 level_list = levels [molecules [0 ]],
138128 )
139129
@@ -145,9 +135,6 @@ def build_conformational_states(
145135 peaks_ua = peaks_ua ,
146136 dihedrals_res = dihedrals_res ,
147137 peaks_res = peaks_res ,
148- start = start ,
149- end = end ,
150- step = step ,
151138 level_list = levels [molecules [0 ]],
152139 states_ua = states_ua ,
153140 states_res = states_res ,
@@ -252,9 +239,6 @@ def _collect_peaks_for_group(
252239 dihedrals_ua : list [list [Any ]],
253240 dihedrals_res : list [Any ],
254241 bin_width : float ,
255- start : int ,
256- end : int ,
257- step : int ,
258242 level_list : list [str ],
259243 ) -> tuple [list [list [Any ]], list [Any ]]:
260244 """Compute histogram peaks for UA and residue dihedral sets.
@@ -280,9 +264,6 @@ def _collect_peaks_for_group(
280264 molecules = molecules ,
281265 dihedrals = dihedrals_ua [res_id ],
282266 bin_width = bin_width ,
283- start = start ,
284- end = end ,
285- step = step ,
286267 )
287268
288269 elif level == "residue" :
@@ -295,9 +276,6 @@ def _collect_peaks_for_group(
295276 molecules = molecules ,
296277 dihedrals = dihedrals_res ,
297278 bin_width = bin_width ,
298- start = start ,
299- end = end ,
300- step = step ,
301279 )
302280
303281 return peaks_ua , peaks_res
@@ -308,9 +286,6 @@ def _identify_peaks(
308286 molecules : list [Any ],
309287 dihedrals : list [Any ],
310288 bin_width : float ,
311- start : int ,
312- end : int ,
313- step : int ,
314289 ) -> list [list [float ]]:
315290 """Identify histogram peaks ("convex turning points") for each dihedral.
316291
@@ -324,9 +299,6 @@ def _identify_peaks(
324299 molecules: Molecule ids in the group.
325300 dihedrals: Dihedral AtomGroups.
326301 bin_width: Histogram bin width (degrees).
327- start: Unused in legacy sampling.
328- end: Unused in legacy sampling.
329- step: Unused in legacy sampling.
330302
331303 Returns:
332304 List of peaks per dihedral (peak_values[dihedral_index] -> list of peaks).
@@ -406,9 +378,6 @@ def _assign_states_for_group(
406378 peaks_ua : list [list [Any ]],
407379 dihedrals_res : list [Any ],
408380 peaks_res : list [Any ],
409- start : int ,
410- end : int ,
411- step : int ,
412381 level_list : list [str ],
413382 states_ua : dict [UAKey , list [str ]],
414383 states_res : list [list [str ]],
@@ -429,9 +398,6 @@ def _assign_states_for_group(
429398 molecules = molecules ,
430399 dihedrals = dihedrals_ua [res_id ],
431400 peaks = peaks_ua [res_id ],
432- start = start ,
433- end = end ,
434- step = step ,
435401 )
436402
437403 elif level == "residue" :
@@ -444,9 +410,6 @@ def _assign_states_for_group(
444410 molecules = molecules ,
445411 dihedrals = dihedrals_res ,
446412 peaks = peaks_res ,
447- start = start ,
448- end = end ,
449- step = step ,
450413 )
451414
452415 def _assign_states (
@@ -455,9 +418,6 @@ def _assign_states(
455418 molecules : list [Any ],
456419 dihedrals : list [Any ],
457420 peaks : list [list [Any ]],
458- start : int ,
459- end : int ,
460- step : int ,
461421 ) -> list [str ]:
462422 """Assign discrete state labels for the provided dihedrals.
463423
@@ -471,9 +431,6 @@ def _assign_states(
471431 molecules: Molecule ids in the group.
472432 dihedrals: Dihedral AtomGroups.
473433 peaks: Peaks per dihedral.
474- start: Unused in legacy sampling.
475- end: Unused in legacy sampling.
476- step: Unused in legacy sampling.
477434
478435 Returns:
479436 List of state labels (strings).
0 commit comments