Skip to content

Commit

Permalink
add peaks ext and NaI
Browse files Browse the repository at this point in the history
  • Loading branch information
cfuselli committed Oct 24, 2024
1 parent 8366293 commit 073ed08
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion amstrax/auto_processing_new/offline_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def parse_args():
parser.add_argument(
"--targets",
nargs="+",
default=["peak_basics", "event_info"],
default=["peak_basics", "event_info", "event_area_per_channel"],
help="List of targets to process (e.g., raw_records, peaks, events).",
)
parser.add_argument("--output_folder", type=str, default=None, help="Path to output folder.")
Expand Down
8 changes: 8 additions & 0 deletions amstrax/auto_processing_new/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ def infer_special_modes(self, st):
self.targets = ["raw_records", "records_led", "led_calibration"]
log.info(f"Overriding targets to {self.targets}")


if "_nai" in self.run_doc.get('mode'):
# Add the NAI plugin to the context
# All the _ext plugins should be already in the context
log.info("Detected NaI run.")
log.info("Adding peak_basics_ext to list of targets to process.")
self.targets.append("peak_basics_ext")

return st

def setup_production(self):
Expand Down

0 comments on commit 073ed08

Please sign in to comment.