multislit_to_container

jwst.exp_to_source.multislit_to_container(inputs)[source]

Reformat exposure-based MSA data to source-based containers.

Parameters

inputs ([MultiSlitModel, ..]) – List of MultiSlitModel instances to reformat, or just a ModelContainer full of MultiSlitModels.

Returns

containers – Returns a dict of ModelContainer instances wherein each instance contains ImageModels of slits belonging to the same source. The key is the ID of each slit, i.e. source_id.

Return type

dict