|
|
性感的生菜 · C#计数List<string>中的连续重复 ...· 1 年前 · |
|
|
谦逊的帽子 · 踩坑经验 | DBeaver ...· 1 年前 · |
|
|
潇洒的大海 · Python ...· 2 年前 · |
|
|
文质彬彬的拐杖 · 教學課程:Microsoft Entra ...· 2 年前 · |
|
|
不羁的手链 · Vue项目打包部署Nginx配置及缓存问题解 ...· 2 年前 · |
Hi,
I've noticed some odd behaviour when running
np.log()onQuantityobjects. Normally, when I run this on a dimensioned value, I get an error, but I've noticed that if theQuantity._valueis of a NumPy type, such asnumpy.float64, then the units seem to be ignored and the log function treats theQuantityas just a normal dimensionless value.Obviously this can be avoided by just being careful with the units that you're using, but I just thought I'd raise the issue - though this may be more of a NumPy issue, I'm not sure.
Apologies if this has already been raised/resolved elsewhere.
Thanks in advance.
Example (using OpenMM 7.4.2 and NumPy 1.16.4):