Skip to content

Commit

Permalink
Minor fix for cuts stage used in Pipeline plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ejeschke committed Oct 27, 2023
1 parent 90de56b commit a340418
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ginga/util/stages/cuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a340418

Please sign in to comment.