Skip to content

Conversation

@ColeFMeldorf
Copy link

Added Campari configuration paths for simulations and output.

Added Campari configuration paths for simulations and output.
@ColeFMeldorf ColeFMeldorf requested a review from rknop October 21, 2025 20:54
Copy link
Contributor

@rknop rknop left a comment

Choose a reason for hiding this comment

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

You might want to look at all the command-line options you have for campari right now. Some of them might reasonably be turned into configuration options. They can still be overridden on the command line.

The key is that anything that affects campari's behavior, other than specific things like the band, the list of input files, the object id, all need to be part of the parameters in the provenance. If you have things that affect how campari runs that you pass on the command line but that aren't in the config, then the way you are building provenances as of the current state of the campari Provenance PR, you're going to be missing all that.

sims_sed_library: /home/rubin_sim_data/sims_sed_library
campari_test_data: /campari_test_data
sed_path: /campari_sed_dir
output_dir: /campari_out_dir
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe system.paths.campari.paths.output_dir is still useful, but :

When writing lightcurves to the databse, you're going to need to use system.paths.lightcurves as the base path. You will want to let snappl choose the rest of the path. (This was in a comment on your Provenance campari PR.)

It's fine to leave this here for now, but we'll want to revisit all of these and prune out the things not used any more.

A25ePSF_path: /home/snappl/snappl/tests/testdata/A25ePSF

campari:
paths:
Copy link
Contributor

Choose a reason for hiding this comment

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

...isn't this a bit much? system.paths.campari.etc should be fine, whereas system.paths.campari.paths.etc has paths in it twice.

The system.paths.campari config variables should be for temp storage and storage of campari stuff that we're not persisting in the database. Currently, we're only persisting the lightcurve; those will go underneath system.paths.lightcurves. We may later decide to persist other stuff.

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.

3 participants