print -> logging; fixed "peakfinder parameters"

This commit is contained in:
2025-10-20 16:38:05 +02:00
parent bd16a75940
commit ee9c9bbaad

View File

@@ -2,6 +2,7 @@ import argparse
from time import time_ns
import numpy as np
from logzero import logger as log
from algos import (
calc_apply_aggregation, calc_apply_threshold, calc_mask_pixels, calc_peakfinder_analysis,
@@ -67,8 +68,8 @@ def work(backend_addr, accumulator_addr, visualisation_addr, fn_config, skip_fra
try:
config = config_file.load()
except Exception as e:
print(f"({pulse_id}) cannot read peakfinder parameters file: {e}", flush=True) #TODO: logging?
except:
log.exception(f"({pulse_id}) cannot read config file")
results = metadata.copy()