You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementation of ModelLibrary on the JWST side revealed some common use-cases and coding patterns that would be useful to document in the AbstractModelLibrary docs. These were:
example workflow where map_function() is used as a generator non-trivially. i.e., for data in lib.map_function(lambda m, i: m.data, modify=False): # do something read-only with the data for this model
example that shows usage of list(lib.map_function()) to modify models in place
library shelve with try…except…finally when errors might be raised while models are open (and note that the try…except should be entirely inside the with context, otherwise finally will not see the library as open)
link to documentation of asn dictionaries, e.g. this one for JWST. For this point, it would eventually be useful to agree on a common standard for associations between Roman and JWST, and perhaps move some common association code to stpipe.
The text was updated successfully, but these errors were encountered:
Implementation of
ModelLibrary
on the JWST side revealed some common use-cases and coding patterns that would be useful to document in theAbstractModelLibrary
docs. These were:example workflow where
map_function()
is used as a generator non-trivially. i.e.,for data in lib.map_function(lambda m, i: m.data, modify=False): # do something read-only with the data for this model
example that shows usage of
list(lib.map_function())
to modify models in placelibrary shelve with
try…except…finally
when errors might be raised while models are open (and note that the try…except should be entirely inside thewith
context, otherwisefinally
will not see the library as open)link to documentation of asn dictionaries, e.g. this one for JWST. For this point, it would eventually be useful to agree on a common standard for associations between Roman and JWST, and perhaps move some common association code to stpipe.
The text was updated successfully, but these errors were encountered: