View Issue Details

IDProjectCategoryView StatusLast Update
0001409FreeCADFeaturepublic2014-02-15 19:30
Reportershoogen Assigned Towmayer  
PriorityimmediateSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Product Versiontrunk 
Summary0001409: implement FreeCAD.Units.Quantity().__float__()
DescriptionIt should the possible to use a Quantity in python as a number, without the cumber stone Value attribute.
This would make it easier to replace existing properties by Quantity properties.
TagsQuantity
FreeCAD Information

Activities

shoogen

2014-02-12 15:28

developer   ~0004196

Last edited: 2014-02-12 15:45

__div__ with quantity
__mul__, __div__ with float
__neg__
__pow__

shoogen

2014-02-13 16:55

developer   ~0004215

By making PropertyLength inherit form PropertyQuantity changes the game

Related Changesets

FreeCAD: master a3056b9d

2014-02-14 14:50:01

wmayer

Details Diff
+ fixes 0001409: implement FreeCAD.Units.Quantity().__float__() Affected Issues
0001409
mod - src/Base/Quantity.cpp Diff File
mod - src/Base/QuantityPy.xml Diff File
mod - src/Base/QuantityPyImp.cpp Diff File

Issue History

Date Modified Username Field Change
2014-02-12 15:13 shoogen New Issue
2014-02-12 15:28 shoogen Note Added: 0004196
2014-02-12 15:45 shoogen Note Edited: 0004196
2014-02-13 16:55 shoogen Note Added: 0004215
2014-02-13 16:56 shoogen Assigned To => wmayer
2014-02-13 16:56 shoogen Priority normal => urgent
2014-02-13 16:56 shoogen Status new => assigned
2014-02-13 17:16 shoogen Priority urgent => immediate
2014-02-14 14:19 wmayer Changeset attached => FreeCAD Master master a3056b9d
2014-02-14 14:19 wmayer Status assigned => closed
2014-02-14 14:19 wmayer Resolution open => fixed
2014-02-15 19:30 shoogen Tag Attached: Quantity