From f735b6e40f35ce117d9518d31c29e6e9d8bcd4f7 Mon Sep 17 00:00:00 2001 From: Sterling Harper Date: Wed, 28 Oct 2015 21:22:40 -0400 Subject: [PATCH] Use numpy-aware isinstance in PyAPI filter --- openmc/filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/filter.py b/openmc/filter.py index 5c0343df75..76cd68523c 100644 --- a/openmc/filter.py +++ b/openmc/filter.py @@ -200,7 +200,7 @@ class Filter(object): msg = 'Unable to add bins "{0}" to a mesh Filter since ' \ 'only a single mesh can be used per tally'.format(bins) raise ValueError(msg) - elif not isinstance(bins[0], Integral): + elif not cv._isinstance(bins[0], Integral): msg = 'Unable to add bin "{0}" to mesh Filter since it ' \ 'is a non-integer'.format(bins[0]) raise ValueError(msg)