mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
12 lines
269 B
Python
12 lines
269 B
Python
from checkvalue import *
|
|
from checkvalue import _isinstance
|
|
|
|
import numpy as np
|
|
|
|
zs = np.zeros((2,))
|
|
|
|
print _isinstance(zs[0], Integral)
|
|
print _isinstance(zs[0], Real)
|
|
print _isinstance(zs[0], (Integral, Real))
|
|
|
|
print check_iterable_type('thing', zs, (Real, Integral))
|