Skip to content

Commit

Permalink
apply the flatfield corr fix from #40
Browse files Browse the repository at this point in the history
needed because of basicpy update
  • Loading branch information
akhanf committed Jul 17, 2024
1 parent 65e61eb commit d9df6e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workflow/scripts/apply_basic_flatfield_corr_zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
with open(model_path / 'settings.json' ) as fp:
model = json.load(fp)

profiles = np.load(model_path / 'profiles.npy')
model["flatfield"] = profiles[0]
model["darkfield"] = profiles[1]
profiles = np.load(model_path / 'profiles.npz')
model["flatfield"] = profiles['flatfield']
model["darkfield"] = profiles['darkfield']

basic = BaSiC()
basic.flatfield = resize(model['flatfield'],img_shape,preserve_range=True)
Expand Down

0 comments on commit d9df6e1

Please sign in to comment.