Skip to content

Commit

Permalink
Use logging in modelica system syntron (#228)
Browse files Browse the repository at this point in the history
* [ModelicaSystem] raise IOError if files are missing

* [ModelicaSystem] define verbose as a class variables

* this simplifies a lot of functions!

* [ModelicaSystem] add class ModelicaSystemError and use it

* class variable _raiseerrors
* functions _check_error() & _raise_error()

* [ModelicaSystem] use _check_error()

* [ModelicaSystem] use _raise_error()

* [ModelicaSystem] use 'raise ModelicaSystemError'

* [ModelicaSystem] convert remaining print() to log messages using logger.*()

* [ModelicaSystem] fix comment

* [ModelicaSystem] use function setCommandLineOptions()

* [ModelicaSystem] raise error if loadLibrary() fails

* [ModelicaSystem] fix default argument - PyCharm: default argument value is mutable

* [PyCharm:ModelicaSystem] style cleanup

* [ModelicaSystem] add missing check for self-_verbose in loadFile()
  • Loading branch information
syntron authored Nov 13, 2024
1 parent dbe2119 commit d293943
Showing 1 changed file with 286 additions and 250 deletions.
Loading

0 comments on commit d293943

Please sign in to comment.