Commit 8926af4
authored
update docstrings and more linter based fixes (#379)
* rename DummyPopen to DockerPopen and add docstring
* docstring for OMCSessionException
* docstring for OMCSessionCmd - depreciated!
* docstring for OMCPathCompatibility*
* improve documentation for OMCSessionZMQ
* docstring for OMCSessionZMQ
* improve documentation of OMCProcess*.omc_run_data_update() and OMCSessionRunData.cmd_model_executable
* [OMCSessionZMQ] small fixes based on pylint
* OMPython/OMCSession.py:615:12: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)
* OMPython/OMCSession.py:835:12: W0621: Redefining name 'ex' from outer scope (line 831) (redefined-outer-name)
* docstring for OMCProcess
* update docstring for ModelicaSystemCmd
* [ModelicaSystem] fix varable names - use snake_case naming style
* [ModelicaSystem] add docstring for isParameterChangeable
* [OMCSessionZMQ] fix another not needed else
* fix exception string
* fix pylint hints about (internal) variable names
OMPython/OMCSession.py:1106:8: C0103: Attribute name "_dockerExtraArgs" doesn't conform to snake_case naming style (invalid-name)
OMPython/OMCSession.py:1107:8: C0103: Attribute name "_dockerOpenModelicaPath" doesn't conform to snake_case naming style (invalid-name)
OMPython/OMCSession.py:1108:8: C0103: Attribute name "_dockerNetwork" doesn't conform to snake_case naming style (invalid-name)
OMPython/OMCSession.py:1110:8: C0103: Attribute name "_interactivePort" doesn't conform to snake_case naming style (invalid-name)
OMPython/OMCSession.py:1112:8: C0103: Attribute name "_dockerCid" doesn't conform to snake_case naming style (invalid-name)
OMPython/OMCSession.py:1121:12: C0103: Variable name "dockerTop" doesn't conform to snake_case naming style (invalid-name)
OMPython/OMCSession.py:1282:8: C0103: Variable name "extraFlags" doesn't conform to snake_case naming style (invalid-name)
OMPython/OMCSession.py:1297:12: C0103: Variable name "dockerNetworkStr" doesn't conform to snake_case naming style (invalid-name)
* reorder imports in tests based on pylint
* [OMCSessionCmd] update exception string
* [ModelicaSystemCmd] fix docstring1 parent 53abbc1 commit 8926af4
File tree
12 files changed
+167
-111
lines changed- OMPython
- tests
12 files changed
+167
-111
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| |||
505 | 509 | | |
506 | 510 | | |
507 | 511 | | |
508 | | - | |
| 512 | + | |
509 | 513 | | |
510 | | - | |
511 | | - | |
| 514 | + | |
| 515 | + | |
512 | 516 | | |
513 | 517 | | |
514 | 518 | | |
| |||
563 | 567 | | |
564 | 568 | | |
565 | 569 | | |
566 | | - | |
567 | | - | |
| 570 | + | |
| 571 | + | |
568 | 572 | | |
569 | 573 | | |
570 | 574 | | |
| |||
580 | 584 | | |
581 | 585 | | |
582 | 586 | | |
583 | | - | |
| 587 | + | |
584 | 588 | | |
585 | 589 | | |
586 | 590 | | |
| |||
618 | 622 | | |
619 | 623 | | |
620 | 624 | | |
621 | | - | |
622 | | - | |
| 625 | + | |
| 626 | + | |
623 | 627 | | |
624 | 628 | | |
625 | 629 | | |
626 | 630 | | |
627 | | - | |
| 631 | + | |
628 | 632 | | |
629 | 633 | | |
630 | 634 | | |
| |||
1405 | 1409 | | |
1406 | 1410 | | |
1407 | 1411 | | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
1408 | 1416 | | |
1409 | 1417 | | |
1410 | 1418 | | |
| |||
1670 | 1678 | | |
1671 | 1679 | | |
1672 | 1680 | | |
1673 | | - | |
| 1681 | + | |
1674 | 1682 | | |
1675 | 1683 | | |
1676 | | - | |
| 1684 | + | |
1677 | 1685 | | |
1678 | 1686 | | |
1679 | 1687 | | |
| |||
1742 | 1750 | | |
1743 | 1751 | | |
1744 | 1752 | | |
1745 | | - | |
1746 | 1753 | | |
1747 | 1754 | | |
1748 | | - | |
1749 | | - | |
1750 | | - | |
| 1755 | + | |
1751 | 1756 | | |
1752 | 1757 | | |
1753 | 1758 | | |
| |||
0 commit comments