Skip to content

fix select - ./IRF.selectRunsForGammaHadronSeparationTraining.sh broken#152

Merged
GernotMaier merged 16 commits into
mainfrom
v492-dev21
Jun 26, 2026
Merged

fix select - ./IRF.selectRunsForGammaHadronSeparationTraining.sh broken#152
GernotMaier merged 16 commits into
mainfrom
v492-dev21

Conversation

@GernotMaier

Copy link
Copy Markdown
Member

Fix bc issue in ./IRF.selectRunsForGammaHadronSeparationTraining.sh

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes run selection failures in IRF.selectRunsForGammaHadronSeparationTraining.sh by making zenith-bin parsing more robust (especially for JSON configs) and by improving how printRunParameter is invoked when EVNDISPSYS is a command-prefix (e.g., container wrapper).

Changes:

  • Simplify and correct zenith-bin edge extraction from JSON (preserving order, de-duplicating edges) and normalize parsing into an array.
  • Add input validation for zenith bin edges (must be numeric; must have at least two edges) to prevent downstream bc errors.
  • Fix find -name glob character classes for V4/V5 file selection and wrap printRunParameter invocation to support prefixed EVNDISPSYS.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Base automatically changed from v492-dev20 to main June 26, 2026 12:17
@GernotMaier GernotMaier marked this pull request as ready for review June 26, 2026 12:18
@GernotMaier GernotMaier merged commit b2762d5 into main Jun 26, 2026
1 check passed
@GernotMaier GernotMaier deleted the v492-dev21 branch June 26, 2026 12:22
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.

2 participants