|
|
道上混的稀饭 · 关于举办2014年西甜瓜栽培及贮运加工高级研 ...· 1 年前 · |
|
|
至今单身的青蛙 · 经典电影大片中的四川美景,你去过几个?- ...· 1 年前 · |
|
|
绅士的电脑桌 · 溧水区人民政府 区政协十一届一次会议 ...· 1 年前 · |
|
|
玩命的莴苣 · 与老款有何不同?第八代高尔夫底盘拆解_搜狐汽 ...· 2 年前 · |
|
|
玩命的青蛙 · 好用的免费梯子|免费稳定梯子|能上外网的加速器· 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):