removed unused variables

This commit is contained in:
2024-03-22 22:56:43 +01:00
parent 69745e34bc
commit a22fc651f1

View File

@ -148,7 +148,7 @@ def main():
daq_rec = results.get("daq_rec",0) daq_rec = results.get("daq_rec",0)
event_laser = bool((daq_rec >> 16) & 1) event_laser = bool((daq_rec >> 16) & 1)
event_darkshot = bool((daq_rec >> 17) & 1) event_darkshot = bool((daq_rec >> 17) & 1)
event_fel = bool((daq_rec >> 18) & 1) # event_fel = bool((daq_rec >> 18) & 1)
event_ppicker = bool((daq_rec >> 19) & 1) event_ppicker = bool((daq_rec >> 19) & 1)
if not event_darkshot: if not event_darkshot:
@ -169,7 +169,6 @@ def main():
pedestal_file_name = metadata.get("pedestal_name", None) pedestal_file_name = metadata.get("pedestal_name", None)
if pedestal_file_name is not None and pedestal_file_name != pedestal_file_name_saved: if pedestal_file_name is not None and pedestal_file_name != pedestal_file_name_saved:
n_corner_pixels_mask = results.get("n_corner_pixels_mask", 0)
pixel_mask_current = ju_stream_adapter.handler.pixel_mask pixel_mask_current = ju_stream_adapter.handler.pixel_mask
ju_stream_adapter.handler.pixel_mask = pixel_mask_current ju_stream_adapter.handler.pixel_mask = pixel_mask_current
pedestal_file_name_saved = pedestal_file_name pedestal_file_name_saved = pedestal_file_name
@ -197,8 +196,6 @@ def main():
else: else:
pixel_mask_pf = None pixel_mask_pf = None
disabled_modules = results.get("disabled_modules", [])
# add additional mask at the edge of modules for JF06T08 # add additional mask at the edge of modules for JF06T08
apply_additional_mask = (results.get("apply_additional_mask", 0) == 1) apply_additional_mask = (results.get("apply_additional_mask", 0) == 1)
if detector == "JF06T08V04" and apply_additional_mask: if detector == "JF06T08V04" and apply_additional_mask:
@ -465,7 +462,6 @@ def main():
results["type"] = str(data.dtype) results["type"] = str(data.dtype)
results["shape"] = data.shape results["shape"] = data.shape
frame_number = metadata["frame"]
accumulator_socket.send_json(results, FLAGS) accumulator_socket.send_json(results, FLAGS)