From c19d342dd42ea686e7215312c1125ab954fd0cf5 Mon Sep 17 00:00:00 2001 From: Griffin Hosseinzadeh <1976665+griffin-h@users.noreply.github.com> Date: Tue, 7 Feb 2023 00:16:10 -0700 Subject: [PATCH] allow multiplying images where GAIN etc is not set --- banzai/data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/banzai/data.py b/banzai/data.py index ed7327d24..00b138437 100644 --- a/banzai/data.py +++ b/banzai/data.py @@ -150,9 +150,9 @@ def __imul__(self, value): # TODO: Handle the case where this is an array. Add SATURATE and GAIN handling when array. self.data *= value self.uncertainty *= value - self.meta['SATURATE'] *= value - self.meta['GAIN'] /= value - self.meta['MAXLIN'] *= value + self.saturate *= value + self.gain /= value + self.max_linearity *= value return self def __itruediv__(self, value):