legend-exp / pygama

Python package for data processing and analysis
https://pygama.readthedocs.io
GNU General Public License v3.0
18 stars 56 forks source link

Support YAML configuration files #548

Closed gipert closed 4 months ago

gipert commented 8 months ago

We should go through the codebase and swap json.load() calls with a generic loader, e.g.:

https://github.com/legend-exp/pylegendmeta/blob/main/src/legendmeta/utils.py

gipert commented 4 months ago

build_hit() and build_evt() already support YAML configs. DataLoader() and pygama.pargen still need to be updated.

ggmarshall commented 4 months ago

I don't think pargen has any json loading in it anyway, this is handled in the dataflow

gipert commented 4 months ago

Ok, I'll close this then.