Skip to content
Snippets Groups Projects

Improved BOZ flat field

Merged Loïc Le Guyader requested to merge boz_flat_field into master
Compare and Show latest version
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -646,7 +646,8 @@ def inspect_rois(data_mean, rois, threshold=None, allrois=False):
fig = plt.figure(figsize=(5, 3))
grid = plt.GridSpec(2, 2, width_ratios=(1, 4), height_ratios=(2, 1),
# left=0.1, right=0.9, bottom=0.1, top=0.9,
wspace=0.05, hspace=0.05)
wspace=0.05, hspace=0.05,
figure=fig)
main_ax = fig.add_subplot(grid[0, 1])
y = fig.add_subplot(grid[0, 0], xticklabels=[], sharey=main_ax)
x = fig.add_subplot(grid[1, 1], yticklabels=[], sharex=main_ax)
@@ -1246,7 +1247,7 @@ def nl_fit(params, domain):
p0 = np.array([0]*N)
# flat flat_field
ff = compute_flat_field_correction(params.rois, params.get_flat_field())
ff = compute_flat_field_correction(params.rois, params)
fixed_p = (domain, params.nl_alpha, params.arr_dark, params.arr, params.tid,
fitrois, params.get_mask(), ff, params.sat_level)
Loading