wmayer
c4c1034e4e
Py3: replace sq_slice and sq_ass_slice with mp_subscript and mp_ass_subscript because they are not used any more in Py3
2017-08-21 13:33:07 +02:00
wmayer
533a78026a
add method toFormat to get number format from character
2017-08-20 18:50:13 +02:00
Oliver Oxtoby
858df142e2
Base: Make Quantity parser accept 1/[unit] as [unit]^-1
2017-08-20 16:53:57 +02:00
Oliver Oxtoby
1165d3c6e0
Base: Fixes in MKS units schema
...
- Change default unit for Length, if out of range of scaling, to m
- Add density scaling as in Internal schema (avoids density always displaying in kg/mm^3)
- Change velocity to m/s rather than mm/s
2017-08-20 16:50:26 +02:00
Oliver Oxtoby
38fa712032
Base: Add DynamicViscosity and SpecificEnergy units
2017-08-20 16:50:11 +02:00
wmayer
7a95962037
fixes of PR 765
...
remove QT_TRANSLATE_NOOP because of compiler warnings
mark _isReported as mutable to avoid removing const keyword from ReportException()
improve whitespaces
2017-08-17 22:50:01 +02:00
Abdullah Tahiri
572bd0ae01
Exception extension to only report once
2017-08-17 22:45:40 +02:00
Abdullah Tahiri
3c630dc319
Exceptions: translation support
2017-08-17 22:44:11 +02:00
wmayer
49d75f88be
fix warning
2017-08-13 16:58:06 +02:00
wmayer
892e78d445
extend Python api of units:
...
+ get list of all available schemas
+ get currently set schema
+ translate a quantity to a given schema
2017-08-13 16:55:00 +02:00
wmayer
a51b2f6ce7
fix Py3 issue
2017-07-25 01:07:09 +02:00
wmayer
e20975c2ef
add attribute to control format of a quantity via Python
2017-07-24 22:47:10 +02:00
wmayer
7ab8a9996d
fixes #0003137 : Unit UserString wrong
2017-07-24 16:52:03 +02:00
Itai Nahshon
a8faef009b
Do not use C++11 utf8 strings - not supported by VC2013.
2017-07-18 17:43:09 +02:00
Itai Nahshon
29ff650f65
Spelling
2017-07-18 17:41:51 +02:00
Itai Nahshon
a91c5bbae7
Add UnitsSchemaMmMin - izes are only in mm, speed in mm/munute.
2017-07-18 17:41:36 +02:00
luzpaz
a36c90cee4
Added missing apostrophe
2017-07-16 11:40:32 -03:00
luzpaz
960b7c175d
fix typo
2017-07-10 19:29:55 -03:00
luzpaz
d5d45e2661
fix typos
2017-07-10 19:29:55 -03:00
wmayer
6a14bb7451
fix for mixing up SchemeVersion and FileVersion
2017-07-06 17:59:01 +02:00
wmayer
e7c7c07cda
implement object serialization for Vector class
2017-06-22 21:52:53 +02:00
Markus Lampert
03c5168d89
Proper taskk panel cleanup on escape.
2017-06-21 11:41:35 -07:00
wmayer
654276c49d
fix issues in CoordinateSystem class and expose to Python
2017-06-20 21:22:59 +02:00
wmayer
63f9e6c528
quantities must be expressed in units m,g,s for MKS and internal scheme
2017-06-18 23:43:42 +02:00
Itai Nahshon
634cbf1566
Add Units schemaTranslate for Unit::Velocity.
...
Independent of scale, use only mm/min or in/min because it is compatible
with GCODE feed rate units.
(My use case is definition os feed-rates in PathLoadTool.py).
2017-06-18 17:11:49 +02:00
wmayer
6415b4699b
fix build failure on FreeBSD, support colored output to terminal
2017-06-18 12:26:05 +02:00
wmayer
9513792292
py3: support of Python 3.4
2017-06-06 23:49:42 +02:00
wmayer
8ce343291b
py3: fox compiler warnings
...
issue 0000995
2017-06-04 00:17:57 +02:00
wmayer
98f8879e24
Py3: in Py2 use string instead of unicode for identifier
2017-06-03 10:51:05 +02:00
wmayer
69d0e8bd7f
py3: partially revert of getattr -> getattro because getattro is only needed for the static callback function
...
issue 0000995
2017-06-03 10:51:05 +02:00
looooo
bc696e5ab5
py3: change of getattr -> getattro
...
issue 0000995
2017-06-03 10:51:05 +02:00
looooo
94c68d72c3
py3: base: repair compile-fail
2017-05-21 12:35:41 +02:00
Yorik van Havre
0e9e49cbcc
py3: Base: files R-Z ported to python3
...
issue 0000995
2017-05-21 12:35:41 +02:00
wmayer
e239a70ffd
fix crash caused by PR761
2017-05-18 19:44:10 +02:00
Yorik van Havre
2becb8a0e8
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
looooo
b1e3777834
vs 2013 has already version info grater 18
2017-05-17 16:39:28 +02:00
Yorik van Havre
7114667d64
py3: Base: files A-I ported to python3
...
issue 0000995
2017-05-17 16:39:28 +02:00
wmayer
dc413acc42
fix build failure and make Py2/Py3 specific change
2017-05-15 22:36:21 +02:00
wmayer
7d47a723fb
Fix various issues:
...
+ fix dangling pointers when fetching Python error text
+ initialize members in overloaded constructors of Exception class
+ implement assignment operator in sub-class
+ move to PyCXX API to simplify handling with reference counting and reading values from the dict
2017-05-15 18:49:09 +02:00
Zheng, Lei
a6abf0b25a
Console: added tag based log support
2017-05-13 17:46:38 +02:00
wmayer
4971818321
fix -Woverloaded-virtual
2017-05-13 16:46:49 +02:00
wmayer
ff82e88413
remove commented code
2017-05-13 16:09:30 +02:00
wmayer
017752b9d8
improve whitespaces and reduce code duplication
2017-05-13 16:00:32 +02:00
wmayer
33bed8d412
remove export macro from template class to fix linker errors on Windows
2017-05-13 15:48:17 +02:00
Abdullah Tahiri
a7bc962ce5
Renaming getPyDict to getPyObject for consistency with BaseClass
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
b410f8857c
Enable exceptions to save/restore information in a python dictionary and enable throwing exception from dictionary information
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
9c698f1710
Exception Factory pre-compiled header
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
db8511883c
Enable PyException to reconstruct the original exception
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
9a5f782399
pytools fix
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
d28424933a
Extend PyTools to export exception dictionary if present
2017-05-13 15:27:57 +02:00