Skip to content

Commit

Permalink
Same fix for minmax
Browse files Browse the repository at this point in the history
  • Loading branch information
sfegan committed Dec 6, 2024
1 parent a389654 commit cb8d21d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/diagnostics/stage1_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def minmax(x):
measurement_set = stage1.nectarcam().ancillary_data().feb_temperature(int(modid))
mt = numpy.asarray([measurement_set.measurement(i).tfeb1() for i in range(measurement_set.measurement_size())]) if temperature_set==1 \
else numpy.asarray([measurement_set.measurement(i).tfeb2() for i in range(measurement_set.measurement_size())])
mmask = mt != 0
mmask = numpy.bitwise_and(mt>0, mt<255.0)
if(numpy.count_nonzero(mmask)>1):
tfeb.append(minmax(mt[mmask]))
mask.append(True)
Expand Down

0 comments on commit cb8d21d

Please sign in to comment.