simonsobs / sotodlib

Simons Observatory: Time-Ordered Data processing library.
MIT License
15 stars 17 forks source link

Config Files with Time Dependence #322

Open kmharrington opened 1 year ago

kmharrington commented 1 year ago

Recording this convo off slack because I'm not sure if I'm getting to it soon (open for others to take).

We've already hit one point in the automated data packaging where it would be nice to be able to have a configuration file where a number could be set for one range of time and then changed for another range of time. This is based off hardware changes during "operations" at UCSD. I expect we'll see more of these when we get onsite.

It's probably possible to build off this lookup_conditional function to build a short way of saving / loading time dependent from a config file. Having a standard easy way to do this would be nice.

(Somewhat related, it seems like ManifestDbs were almost built for this sort of thing by I'm not quite sure how it would work in this sort of instance. More thought there could also be an option. )

kmharrington commented 1 year ago

@yukisakurai In case you have time and would like to think about this. The specific issue I'm thinking of is that I want to be able to set force_quad to different numbers based on the time of the data. I think we should build a general solution instead of one specific for that.