inducer / arraycontext

Choose your favorite numpy-workalike!
6 stars 11 forks source link

Use np.isscalar instead of isinstance(x, Number) #121

Closed alexfikl closed 2 years ago

alexfikl commented 2 years ago

There's about a dozen places checking for scalars (from a quick grep) and these were the only ones using isinstance(x, Number), so this should make it more consistent.

inducer commented 2 years ago

Thx!