Skip to content

BUG: AttributeError: 'float' object has no attribute 'item'

eq_efit = load_testing_equilibrium(5)
surf_psin = np.linspace(0.01, 1, 221, endpoint=False) 
surfs = [eq_efit._flux_surface(psi_n=psi_n)[0] for psi_n in surf_psin]

area = np.asarray([np.asscalar(s.area) for s in surfs]) # raise error here (!)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information