View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001410 | FreeCAD | Bug | public | 2014-02-12 17:20 | 2014-02-14 16:39 |
Reporter | shoogen | Assigned To | wmayer | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | trunk | ||||
Summary | 0001410: Base::Quantity::getValueAs does not properly check the dimension | ||||
Description | if the given Units is unsuitable the function should raise a ValueError instead of returning invalid values. A unit is unsuitable if the dimension of the units do not match. The (derived) dimension of "Angle" should be ignored in this check. | ||||
Steps To Reproduce | >>> FreeCAD.Units.Quantity('100km').getValueAs(FreeCAD.Units.Ampere) 1e+08 | ||||
Tags | No tags attached. | ||||
FreeCAD Information | |||||