Skip to content

Commit 87b0a38

Browse files
syntronadeas31
andauthored
Reorder imports (#288)
* [OMCSession] reorder imports * [ModelicaSystem] reorder imports * [__init__] reorder imports --------- Co-authored-by: Adeel Asghar <adeel.asghar@liu.se>
1 parent ee63720 commit 87b0a38

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

OMPython/ModelicaSystem.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@
3333
"""
3434

3535
import csv
36+
from dataclasses import dataclass
37+
import importlib
3638
import logging
3739
import numbers
40+
import numpy as np
3841
import os
42+
import pathlib
3943
import platform
4044
import re
4145
import subprocess
4246
import tempfile
43-
import xml.etree.ElementTree as ET
44-
import numpy as np
45-
import importlib
46-
import pathlib
47-
from dataclasses import dataclass
4847
import textwrap
4948
from typing import Optional
5049
import warnings
50+
import xml.etree.ElementTree as ET
5151

5252
from OMPython.OMCSession import OMCSessionZMQ, OMCSessionException
5353

OMPython/OMCSession.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,24 @@
3434
CONDITIONS OF OSMC-PL.
3535
"""
3636

37-
import shutil
3837
import getpass
39-
import logging
4038
import json
39+
import logging
4140
import os
4241
import pathlib
4342
import psutil
43+
import pyparsing
4444
import re
45+
import shutil
4546
import signal
4647
import subprocess
4748
import sys
4849
import tempfile
4950
import time
5051
from typing import Optional
5152
import uuid
52-
import pyparsing
53-
import zmq
5453
import warnings
54+
import zmq
5555

5656
# TODO: replace this with the new parser
5757
from OMPython.OMTypedParser import parseString as om_parser_typed

OMPython/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@
3636
CONDITIONS OF OSMC-PL.
3737
"""
3838

39-
from OMPython.OMCSession import OMCSessionCmd, OMCSessionZMQ, OMCSessionException
40-
from OMPython.ModelicaSystem import ModelicaSystem, ModelicaSystemCmd, ModelicaSystemError, LinearizationResult
39+
from OMPython.ModelicaSystem import LinearizationResult, ModelicaSystem, ModelicaSystemCmd, ModelicaSystemError
40+
from OMPython.OMCSession import OMCSessionCmd, OMCSessionException, OMCSessionZMQ
4141

4242
# global names imported if import 'from OMPython import *' is used
4343
__all__ = [
44+
'LinearizationResult',
4445
'ModelicaSystem',
4546
'ModelicaSystemCmd',
4647
'ModelicaSystemError',
47-
'LinearizationResult',
4848

49+
'OMCSessionCmd',
4950
'OMCSessionException',
5051
'OMCSessionZMQ',
51-
'OMCSessionCmd',
5252
]

0 commit comments

Comments
 (0)