Skip to content

Commit

Permalink
psf-fitting random seed fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 committed Sep 12, 2023
1 parent cda3380 commit 534a273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion romancal/lib/tests/test_psf.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def add_synthetic_sources(
model_data = fit_model(xx, yy) * image_model.data.unit
model_err = np.sqrt(model_data.value) * model_data.unit
synth_image[slc_lg] += (
np.random.normal(
rng.normal(
model_data.to_value(image_model.data.unit),
model_err.to_value(image_model.data.unit),
size=model_data.shape,
Expand Down

0 comments on commit 534a273

Please sign in to comment.