Skip to content

Make all paths relative#95

Merged
jmcarcell merged 3 commits into
key4hep:mainfrom
Zehvogel:relative-paths
Jun 3, 2026
Merged

Make all paths relative#95
jmcarcell merged 3 commits into
key4hep:mainfrom
Zehvogel:relative-paths

Conversation

@Zehvogel
Copy link
Copy Markdown
Collaborator

@Zehvogel Zehvogel commented May 21, 2026

BEGINRELEASENOTES

  • Make paths for sequences, collection patch file and Pandora configuration relative. Running with Pandora will still require calling k4run from the correct directory, but it now prints a warning in that case.
    ENDRELEASENOTES

First patch on the journey to fix #88

Running the reconstruction with Pandora from a different directory still fails because of

<HistogramFile>PandoraSettingsCLD/PandoraLikelihoodData9EBin.xml</HistogramFile>

Handling this without creating a new file every time would need an extension of Pandora and its API to offer a copy of Pandora::ReadSettings that takes the XML as a string directly. Then we could dynamically rewrite the path from our side. This will be left for a future PR.

Comment thread CLDConfig/ParticleFlow/Pandora.py
@Zehvogel Zehvogel marked this pull request as ready for review June 3, 2026 13:50
@Zehvogel Zehvogel requested a review from jmcarcell June 3, 2026 13:50
@jmcarcell jmcarcell merged commit bf0cec9 into key4hep:main Jun 3, 2026
6 checks passed
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.

Make CLDReconstruction.py runnable from other directories

2 participants