Skip to content

Commit 8a60cd2

Browse files
committed
prepare new file ModelicaSystem.py
* dummy entries for the classes to move from __init__.py
1 parent b3dfce4 commit 8a60cd2

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

OMPython/ModelicaSystem.py

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
Definition of main class to run Modelica simulations - ModelicaSystem.
4+
"""
5+
6+
__license__ = """
7+
This file is part of OpenModelica.
8+
9+
Copyright (c) 1998-CurrentYear, Open Source Modelica Consortium (OSMC),
10+
c/o Linköpings universitet, Department of Computer and Information Science,
11+
SE-58183 Linköping, Sweden.
12+
13+
All rights reserved.
14+
15+
THIS PROGRAM IS PROVIDED UNDER THE TERMS OF THE BSD NEW LICENSE OR THE
16+
GPL VERSION 3 LICENSE OR THE OSMC PUBLIC LICENSE (OSMC-PL) VERSION 1.2.
17+
ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES
18+
RECIPIENT'S ACCEPTANCE OF THE OSMC PUBLIC LICENSE OR THE GPL VERSION 3,
19+
ACCORDING TO RECIPIENTS CHOICE.
20+
21+
The OpenModelica software and the OSMC (Open Source Modelica Consortium)
22+
Public License (OSMC-PL) are obtained from OSMC, either from the above
23+
address, from the URLs: http://www.openmodelica.org or
24+
http://www.ida.liu.se/projects/OpenModelica, and in the OpenModelica
25+
distribution. GNU version 3 is obtained from:
26+
http://www.gnu.org/copyleft/gpl.html. The New BSD License is obtained from:
27+
http://www.opensource.org/licenses/BSD-3-Clause.
28+
29+
This program is distributed WITHOUT ANY WARRANTY; without even the implied
30+
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, EXCEPT AS
31+
EXPRESSLY SET FORTH IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE
32+
CONDITIONS OF OSMC-PL.
33+
"""
34+
35+
import csv
36+
import logging
37+
import os
38+
import platform
39+
import re
40+
import subprocess
41+
import tempfile
42+
import xml.etree.ElementTree as ET
43+
import numpy as np
44+
import importlib
45+
import pathlib
46+
47+
from OMPython.OMCSession import OMCSessionBase, OMCSessionZMQ
48+
49+
# define logger using the current module name as ID
50+
logger = logging.getLogger(__name__)
51+
52+
53+
class ModelicaSystemError(Exception):
54+
pass
55+
56+
57+
class ModelicaSystem:
58+
pass

0 commit comments

Comments
 (0)