Closed arkanoid87 closed 1 year ago
Seems somehow linked to angular units but yet to find out the reason behind this
for unit in c.ureg: try: bar = pd.DataFrame({"foo": c.PA_([0.0,1.0,2.0], unit)}) if (bar["foo"] > 1).sum() == 0: print(unit) except: pass
output:
K_alpha_Mo_d_220 K_alpha_W_d_220 alpha angular_degree angular_minute angular_second arc_minute arc_second arcdeg arcdegree arcmin arcminute arcsec arcsecond deg degree electron_g_factor fine_structure_constant g_e gon grad grade mas mil milliarcsecond sq_deg sqdeg square_degree tansec α
I suspect it's interpreting the 1 in 'if (bar["foo"] > 1).sum() == 0:' as radians. That's a pint issue.
Seems somehow linked to angular units but yet to find out the reason behind this
output: