diff --git a/changelog/309.bugfix.rst b/changelog/309.bugfix.rst new file mode 100644 index 00000000..0372e13c --- /dev/null +++ b/changelog/309.bugfix.rst @@ -0,0 +1 @@ +Fix broadcasting issues during pixel -> world conversion for models with a Ravel component. diff --git a/dkist/wcs/models.py b/dkist/wcs/models.py index c684f419..97d08cc9 100755 --- a/dkist/wcs/models.py +++ b/dkist/wcs/models.py @@ -635,6 +635,7 @@ def evaluate(self, *inputs_): else: has_units = False input_values = inputs_ + input_values = [item.flatten() if isinstance(item, np.ndarray) else item for item in input_values] # round the index values, but clip them if they exceed the array bounds # the bounds are one less than the shape dimension value array_bounds = np.array(self.array_shape) - 1