Hi,

Can someone take a look at: https://github.com/numpy/numpy/issues/7978

The crux of the issue is that this:

# This works
a = "%0.3g" % np.array(2)
a
'2'

# This does not
a = "{0:0.3g}".format(np.array(2))
TypeError: non-empty format string passed to object.__format__

I've now hit this in my code. If someone can even point me in the general direction of the code to dig into for this (please let it be python, please let it be python...), I'll dig in more.

Ryan

--
Ryan May