From a340418a450533cc31948fbc4e793863671f247e Mon Sep 17 00:00:00 2001 From: Eric Jeschke Date: Fri, 27 Oct 2023 12:09:02 -1000 Subject: [PATCH] Minor fix for cuts stage used in Pipeline plugin --- ginga/util/stages/cuts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ginga/util/stages/cuts.py b/ginga/util/stages/cuts.py index 6ef17afb0..a01e3bd1e 100644 --- a/ginga/util/stages/cuts.py +++ b/ginga/util/stages/cuts.py @@ -259,7 +259,9 @@ def run(self, prev_stage): return if self.auto: - self.locut, self.hicut = self.autocuts.calc_cut_levels_data(data) + locut, hicut = self.autocuts.calc_cut_levels_data(data) + # numpy objects can be problematic to serialize + self.locut, self.hicut = float(locut), float(hicut) res_np = self.autocuts.cut_levels(data, self.locut, self.hicut, vmin=self.vmin, vmax=self.vmax)