Commit Graph

46 Commits

Author SHA1 Message Date
luz paz
01b21e0d06 Base: Fix header uniformity, whitespace, and doxygen
[skip ci]
2020-11-22 18:12:16 +01:00
wmayer
9415e7b6da Base: [skip ci] implement method Quantity.toStr() to control string representation 2020-02-29 22:51:55 +01:00
wmayer
ea6ed77b3e Base: [skip ci] improve repr() for quantity
https://forum.freecadweb.org/viewtopic.php?f=10&t=43718
https://forum.freecadweb.org/viewtopic.php?f=10&t=43431&p=369556#p369575
2020-02-29 00:20:21 +01:00
wmayer
f9cc8b143a Base: [skip ci] support of __round__ of QuantityPy 2020-02-16 21:50:06 +01:00
luz.paz
011e5aedfa src/Base: [skip ci] fix header uniformity
This PR fixes header uniformity across all `src/Base` files
2019-12-25 11:38:58 +01:00
Zheng, Lei
8426ebe2ba Fix various Py::Object leak 2019-10-08 17:53:20 +02:00
Zheng, Lei
f16c265f00 App: fix QuantityPy __add__ and __sub__ 2019-09-28 15:32:12 +02:00
Zheng, Lei
1efadc928e Base: improve base python object number protocol 2019-09-28 15:30:23 +02:00
wmayer
9a5a7a8866 disable commit 34264408 2019-02-19 22:28:46 +01:00
wmayer
d1ff2b7dce use format options when using repr() on a quantity 2019-02-19 13:46:22 +01:00
wmayer
fb27265934 Expose some standard units and quantities to Python 2019-02-12 15:12:19 +01:00
wmayer
1106404b1e implement true divide handler of the number protocol for Quantity 2018-10-27 15:27:27 +02:00
wmayer
9e8be1aa23 extend QuantityFormat to set denominator independent of user settings 2018-09-17 12:38:46 +02:00
wmayer
881059fd61 missing call to clear error indicator 2018-06-04 17:48:10 +02:00
wmayer
8e0a6cb832 fix conversion factors for psi and ksi 2018-03-31 15:43:16 +02:00
wmayer
2da18e49aa fix warning 2017-11-14 21:47:56 +01:00
wmayer
dd66a9c9fc add method toFormat to get number format from character 2017-08-20 18:50:13 +02:00
wmayer
07261b161d fix Py3 issue 2017-07-25 01:07:09 +02:00
wmayer
e32c37598b add attribute to control format of a quantity via Python 2017-07-24 22:47:10 +02:00
Yorik van Havre
0bc16d353b py3: Base: files I-R ported to python3
PyObjectBase.cpp and PyObjectBase.h not included
issue 0000995
2017-05-18 16:00:05 +02:00
wmayer
47b41a7883 fixes #0002460: Use keyword 'explicit' for Quantity constructor 2016-11-05 23:21:42 +01:00
wmayer
39e589a4d7 fix -Wextra in FreeCADBase 2016-09-21 15:02:02 +02:00
wmayer
bb342d88a3 + fixes #0002554: Py Quantity Constructor Angles 2016-05-14 19:30:43 +02:00
Mateusz Skowroński
05f95c0506 Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
Sebastian Hoogen
8234d97dd5 bugfix in unit parser
partly revert to 810fadab23
and change python string handling to "et" method
2014-10-05 14:44:04 -03:00
Sebastian Hoogen
59596bb6b0 fixes #1744 Use unicode in Unit system 2014-09-20 08:58:06 +02:00
wmayer
d422b146b0 + fixes #0001619: Python script generating 3D model works in V0.13, error in V0.14 2014-07-27 14:08:31 +02:00
wmayer
25defd5699 + support comparison with double in quantity number protocol 2014-07-14 17:17:41 +02:00
wmayer
f0d8650c3c + Fix broken unit tests 2014-02-25 15:24:10 +01:00
wmayer
927811213d + fixes #0001410: Base::Quantity::getValueAs does not properly check the dimension 2014-02-14 17:14:39 +01:00
wmayer
cc016c9365 + fixes #0001409: implement FreeCAD.Units.Quantity().__float__() 2014-02-14 14:50:01 +01:00
wmayer
438b6d4681 + extend number protocol 2014-02-14 12:46:30 +01:00
jriegel
16c6fe2470 Add unti support to Sketcher 2013-12-15 22:47:47 +01:00
jriegel
8da9922f18 fix user preferred 2013-12-10 23:32:25 +01:00
jriegel
f265f551c2 Switching Quantity parser to UTF8 2013-12-09 23:50:52 +01:00
jriegel
21c517eff0 Some fixes in unit system 2013-12-08 19:48:13 +01:00
jriegel
d3ff113711 some fixes in quantity 2013-12-06 23:26:42 +01:00
jriegel
b16190181b some fixes and comparison interface for Unit and Quantity python objects 2013-12-06 00:06:58 +01:00
jriegel
69a4bbc46a Implement the three major unit system schemas 2013-12-05 18:16:31 +01:00
jriegel
87c8d5b022 Switching the UnitsApi to the new Quantity system 2013-12-03 19:03:08 +01:00
jriegel
15648c1bcc Fix some spelling 2013-12-02 19:50:51 +01:00
jriegel
0612ebcb28 Adding Unit definition to the python modul 2013-11-30 21:46:36 +01:00
jriegel
c8cc4a179a integrate Quantities into PropertyView and activate preferences again 2013-09-25 21:59:24 +02:00
jriegel
7fe834ffbe first finished implementation of Quantity parser 2013-09-24 11:00:51 +02:00
jriegel
bf3371a95d implementing Quantity further 2013-09-10 18:27:24 +02:00
jriegel
8d53370ffe Start new Unit and Quantity system 2013-08-11 23:03:34 +02:00