We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2f5211 commit 590440eCopy full SHA for 590440e
1 file changed
openmc_plotter/plotgui.py
@@ -12,6 +12,7 @@
12
from matplotlib.backends.backend_qt5agg import FigureCanvas
13
import matplotlib.pyplot as plt
14
import numpy as np
15
+import numpy.ma as ma
16
17
from .plot_colors import rgb_normalize, invert_rgb
18
from .plotmodel import DomainDelegate, PlotModel
@@ -287,7 +288,7 @@ def mouseMoveEvent(self, event):
287
288
289
if self.model.tally_data is not None:
290
tid, value = self.getTallyInfo(event)
- if value is not None and not np.isnan(value):
291
+ if value is not None and value is not ma.masked:
292
self.updateTallyDataIndicatorValue(value)
293
tallyInfo = "Tally {} {}: {:.5E}".format(
294
tid, cv.tallyValue, float(value))
0 commit comments