Skip to content

Commit

Permalink
ref: change seed to rng for unwrap_phase function
Browse files Browse the repository at this point in the history
  • Loading branch information
Eoghan O'Connell committed Oct 13, 2023
1 parent 4937f6e commit 3362891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qpimage/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,10 @@ def _get_amp_pha(self, data, which_data, bg_data=None, proc_phase=True):
pham = pha.copy()
pham[nanmask] = 0
pham = np.ma.masked_array(pham, mask=nanmask)
pha = unwrap_phase(pham, seed=47)
pha = unwrap_phase(pham, rng=47)
pha[nanmask] = np.nan
else:
pha = unwrap_phase(pha, seed=47)
pha = unwrap_phase(pha, rng=47)
# remove 2PI offsets that might be present in the border phase
border = np.concatenate((pha[0, :],
pha[-1, :],
Expand Down

0 comments on commit 3362891

Please sign in to comment.