Skip to content

Test #275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 61 commits into from
Closed

Test #275

wants to merge 61 commits into from

Conversation

syntron
Copy link
Contributor

@syntron syntron commented Apr 26, 2025

This is just a draft of ideas to further work on ...

... will be splitted into separate PRs if ready ...

@syntron syntron force-pushed the test branch 4 times, most recently from 0389dfe to 1712a85 Compare April 26, 2025 21:28
@ondras12345
Copy link
Contributor

@syntron Just a note: it is easy to run tests locally:

# git clone ....
cd OMPython
python3 -m venv venv
. ./venv/bin/activate
pip3 install --editable .
pip3 install pytest
pytest

When you push a commit to this pull request, it has to create a new virtual machine, install all dependencies in it, and then run the tests and delete the VM. And it does this for two versions of python and for both linux and Windows. If you run tests locally, you won't have to wait as long for them to finish.

@syntron
Copy link
Contributor Author

syntron commented Apr 28, 2025

@ondras12345 thanks for the hint; the problem is that I'm limited due to the distribution I use: no package for opensuse available ... thus, I have to run testing on a different computer (or on github)

syntron and others added 24 commits April 29, 2025 18:52
…ases

there are a lot of functions which check the type of the input; this is
done by if ... elif ... - however, invalid input is not catched, i.e. there
is *NO* return value define (would be None) if the input is not matching
any of the if branches
Rule: fail early, fail hard - tell the user that something is wrong!

In this case, the user ask for the solution but could get None (= plain
'return') - this would case hard to track errors later (if verbose==False
and raiseerrors==False)
syntron added 21 commits April 29, 2025 21:07
needs the preparation / additional changes in OMCSession* and ModelicaSystem
this is handled in OMCSessionZMQ.sendExpression()
could be a simulation which stoped before the final time ...
./OMPython/ModelicaSystem.py:1236:72: E999 SyntaxError: f-string: unmatched '['
@syntron
Copy link
Contributor Author

syntron commented Apr 29, 2025

this draft PR is (kind of) ready ... I will split it in smaller parts; however, as there are dependencies between the elements some PR will depend on each other ...

@syntron
Copy link
Contributor Author

syntron commented May 1, 2025

Defined via PR #270, #271, #272, #273, #277 #278 and #279

@syntron syntron closed this May 1, 2025
@syntron syntron deleted the test branch May 1, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants