Skip to content

Run DSP without optimization parameters; filter optimization for all usable detectors - #238

Merged
theHenks merged 3 commits into
mainfrom
dsp-optional-opt-pars
Nov 7, 2026
Merged

theHenks merged 3 commits into
mainfrom
dsp-optional-opt-pars

Conversation

@theHenks

@theHenks theHenks commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator
  • I have reviewed all the code in this pull request and deem it of the standard expected for this project.

Summary

  • process_dsp_cal and process_dsp_phy process a detector without energy filter or A/E optimization parameters with the default filter parameters of its DSP configuration. Such a detector still fails if its DSP configuration lists required parameters for it (required_fltopt / required_aoeopt) and they are missing.
  • The shipped processing config selects processable && usability != :off for process_filter_optimization_cal and p_process_filter_optimization_cal, so detectors with usability :ac are optimized as well. Existing production configs are not changed.
  • p_process_skm_phy skims only the runs of a period that have a phy start key in the runinfo. A run without one, e.g. one whose phy the dataset does not list (see Restrict runinfo to the run lists of a dataset; DataSet livetimes and time selections LegendDataManagement.jl#246), has no phy data to skim.

Tests

Pkg.test() passes (3489 passed). No new test covers the empty-parameter case, since it needs metadata and parameters that the test suite does not have.

Parts of this pull request, including code and this description, were written with the help of generative AI.

A detector without energy filter or A/E optimization parameters is
processed with the default filter parameters of its DSP configuration.
It fails only if its DSP configuration requires parameters for it via
`required_fltopt` / `required_aoeopt` and they are missing.
`process_filter_optimization_cal` and `p_process_filter_optimization_cal`
select the detectors that match `processable && usability != :off`
in the shipped processing config, so detectors with usability `:ac`
are optimized as well.
`p_process_skm_phy` skims the runs of a period that have a `phy` start
key in the runinfo. A run without one, e.g. one whose `phy` the dataset
does not list, has no `phy` data to skim.

@theHenks theHenks left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@codecov

codecov Bot commented Nov 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 54.53%. Comparing base (371a052) to head (75cb907).

Files with missing lines Patch % Lines
src/processors/p_process_skm_phy.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #238      +/-   ##
==========================================
+ Coverage   54.52%   54.53%   +0.01%     
==========================================
  Files          75       75              
  Lines       10765    10763       -2     
==========================================
  Hits         5870     5870              
+ Misses       4895     4893       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@theHenks
theHenks merged commit 28cd64c into main Nov 7, 2026
6 of 7 checks passed
@theHenks
theHenks deleted the dsp-optional-opt-pars branch November 7, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant