Open braingram opened 4 months ago
As noted https://github.com/spacetelescope/romancal/pull/1241#discussion_r1629650840
The resample step has a large block of logic to handle different input types: https://github.com/spacetelescope/romancal/blob/459e8e345bbb1ba6bfd76d0d8a90f2058089791e/romancal/resample/resample_step.py#L70
There are similar blocks in other steps, for example for flux: https://github.com/spacetelescope/romancal/blob/459e8e345bbb1ba6bfd76d0d8a90f2058089791e/romancal/flux/flux_step.py#L50
Investigate moving as much of this logic as possible to common code.
This is related to https://jira.stsci.edu/browse/RCAL-875
As noted https://github.com/spacetelescope/romancal/pull/1241#discussion_r1629650840
The resample step has a large block of logic to handle different input types: https://github.com/spacetelescope/romancal/blob/459e8e345bbb1ba6bfd76d0d8a90f2058089791e/romancal/resample/resample_step.py#L70
There are similar blocks in other steps, for example for flux: https://github.com/spacetelescope/romancal/blob/459e8e345bbb1ba6bfd76d0d8a90f2058089791e/romancal/flux/flux_step.py#L50
Investigate moving as much of this logic as possible to common code.