hpc4cmb / toast

Time Ordered Astrophysics Scalable Tools
Other
44 stars 39 forks source link

Cannot override tuple-valued traits from command line #707

Closed keskitalo closed 11 months ago

keskitalo commented 11 months ago

It does not seem that there is any way to override operator traits that expect a tuple from the command line.

Example: toast.ops.pixels_wcs.PixelsWCS.resolution

tskisner commented 11 months ago

All container traits can be specified with their string representation, which is fed through ast.literal_eval() to get the value. Example from the unit tests. I use this routinely with PixelsWCS resolution.

keskitalo commented 11 months ago

Beautiful!