mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-06-06 03:08:42 +02:00
adaptation of expert script to jungfrau_utils changes by Ivan; use of second half of machine for conversion
This commit is contained in:
committed by
Dmitry Ozerov
parent
37f48a15ea
commit
0f478c87aa
@@ -46,11 +46,6 @@ if not mask and mask_double_pixels:
|
||||
warnings.warn("mask_double_pixels set to False")
|
||||
mask_double_pixels = False
|
||||
|
||||
if factor:
|
||||
dtype = np.int32
|
||||
else:
|
||||
dtype = None
|
||||
|
||||
with ju.File(
|
||||
args.file_in,
|
||||
gain_file=gain_file,
|
||||
@@ -59,7 +54,7 @@ with ju.File(
|
||||
mask=mask,
|
||||
gap_pixels=gap_pixels,
|
||||
geometry=geometry,
|
||||
parallel=True,
|
||||
parallel=False,
|
||||
) as juf:
|
||||
n_input_frames = len(juf["data"])
|
||||
good_frames = np.nonzero(juf["is_good_frame"])[0]
|
||||
@@ -72,8 +67,8 @@ with ju.File(
|
||||
roi=None,
|
||||
compression=compression,
|
||||
factor=factor,
|
||||
dtype=dtype,
|
||||
batch_size=25,
|
||||
dtype=None,
|
||||
batch_size=35,
|
||||
)
|
||||
|
||||
pixel_mask = juf.handler.get_pixel_mask(gap_pixels=gap_pixels, geometry=geometry)
|
||||
|
||||
Reference in New Issue
Block a user