print -> logging; fixed "peakfinder parameters"
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user