LSSTDESC / rail_base

Base classes for RAIL
MIT License
0 stars 1 forks source link

Add test to catch parameters that are not streamable to yaml #113

Open eacharles opened 1 month ago

eacharles commented 1 month ago

Basically, if we want to use yaml.safe_load() to read configuration files (and to keep them readable) then the stage config parameters have to be of simple types.

There are a few thing that break this, like trying to have a numpy array or a tuple as a stage parameter.

This will add a test to catch these cases, and fix a few outstanding cases.