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 93985fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ general

- Fix bug with ``ModelContainer.get_crds_parameters`` being a property not a method [#846]

- Fix random seed bug in PSF fitting methods [#862]

ramp_fitting
------------

Expand Down
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 93985fc

Please sign in to comment.