Skip to content

Commit

Permalink
Removed large params from multiprocessing segment
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinceWalnut committed Oct 17, 2023
1 parent d7b6df2 commit d48b954
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/laue_dials/command_line/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
working_phil = phil_scope.fetch(sources=[phil_scope])


def predict_spots(params, refls, expts):
def predict_spots(lam_min, lam_max, d_min, refls, expts):
"""
A function for predicting spots given a geometry
"""
Expand Down Expand Up @@ -125,9 +125,9 @@ def predict_spots(params, refls, expts):
s0,
cell,
U,
params.wavelengths.lam_min,
params.wavelengths.lam_max,
params.reciprocal_grid.d_min,
lam_min,
lam_max,
d_min,
spacegroup=spacegroup,
)

Expand Down Expand Up @@ -266,7 +266,7 @@ def run(args=None, *, phil=working_phil):
for i in range(len(ids)): # Split DIALS objects into lists
expts_arr.append(ExperimentList([experiments[i]]))
refls_arr.append(reflections.select(reflections["id"] == ids[i]))
inputs = list(zip(repeat(params), refls_arr, expts_arr))
inputs = list(zip(repeat(params.wavelengths.lam_min), repeat(params.wavelengths.lam_max), repeat(params.reciprocal_grid.d_min), refls_arr, expts_arr))

# Predict reflections
logger.info(f"Predicting reflections")
Expand Down

0 comments on commit d48b954

Please sign in to comment.