OMParser update#469
Conversation
|
@adeas31 The current code still uses Python2 definitions - thus it fails: Should it be converted to Python3 at all or removed? This PR tries to update the code to get it running (see: 1b592c6 for Python2 => Python3 conversion) and thread save but is it still be required or should it be completly removed? Overall it was not working for some time / any Python3 usage |
|
As far as I can see the code is used to format the records, the record returned by I recommend converting the code to python 3 and adding a test for it. |
28e5a18 to
6c74ec7
Compare
|
@adeas31 I'm not that familar with the OM return values to check this in detail; regarding OMParser, I noted that it it does not return the expected results: running test_everything from test_OMParser (currently commented out; content of the same test in test_OMTypedParser: It is the same input data to parse! The changes in this PR have no effect on Input data as reference: |
|
|
||
| - Python 3.x supported | ||
| - PyZMQ is required | ||
| - Python >= 3.10 supported with complete functionality for Python >= 3.12 |
There was a problem hiding this comment.
Can't we simply say Python >= 3.10 or Python >= 3.12 supported. Do we need to be verbose here?
There was a problem hiding this comment.
we can go with Python >= 3.10; however, the OMPath functionality is only supported for Python >= 3.12 - Python 3.10 has only a compatibility layer to get something working
PS: this should be in the discussion for PR #444
|
Can this be merged now or does it depend on any other PR? |
[README.md] small updates [__init__] small updates
* make it independent of any global state * use a dataclass * *NO* behaviour change!
|
I just run some checks; the return values from Example from run of The data expected by the code is given by om_parser_typed; om_parser_basic would crash the code if returned; nevertheless, it contains the same / the expected information ... Did I missed some additional conversion, i.e. SET1 => (test run with both versions of the code - same results!) |
update OMParser; mainly just change code updates to get it safe for reuse in ModelicaDoE usecases