Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ PyFMI is tested daily in several different ways:
* Extensive external testing within the `Optimica Compiler Toolkit` (OCT) provided by [Modelon](https://help.modelon.com/latest/reference/oct/) using all models in Modelon Modelica libraries (7000+ models), exported as FMUs.
* Unit tests from the `tests` directory. These use FMUs generated by
* OCT
* JModelica.org
* FMUs in the example directory are generated via <em>FMU SDK by Qtronic</em>, more information is available in related `README.txt` for these FMUs with proper license text.
* PyFMI is the default execution engine for [Modelon Impact](https://modelon.com/modelon-impact/).
* Testing with FMUs from [FMI Cross Check](https://github.com/modelica/fmi-cross-check) and commit [55c6704](https://github.com/modelica/fmi-cross-check/commit/55c6704bbcaed3e0f4f788a02af0aba08b7faa4a):
Expand Down
6 changes: 3 additions & 3 deletions doc/sphinx/source/_templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ <h1>Welcome</h1>

PyFMI is a package for loading and interacting with Functional Mock-Up Units (FMUs) both for Model Exchange and Co-Simulation, which are compiled dynamic models compliant with the Functional Mock-Up Interface (FMI), see <a target="_parent" href="https://fmi-standard.org/">here</a> for more information.</p>
<p>
FMI is a standard that enables tool independent exchange of dynamic models on binary format. Several industrial simulation platforms supports export of FMUs, including, Dymola, JModelica.org, OpenModelica and SimulationX, see <a target="_parent" href="https://fmi-standard.org/tools">here</a> for a complete list. PyFMI offers a Python interface for interacting with FMUs and enables for example loading of FMU models, setting of model parameters and evaluation of model equations.
FMI is a standard that enables tool independent exchange of dynamic models on binary format. Several industrial simulation platforms supports export of FMUs, including, Modelon Impact, Dymola, OpenModelica and SimulationX, see <a target="_parent" href="https://fmi-standard.org/tools">here</a> for a complete list. PyFMI offers a Python interface for interacting with FMUs and enables for example loading of FMU models, setting of model parameters and evaluation of model equations.
</p><p>
PyFMI is available as a stand-alone package or as part of the JModelica.org distribution. Using PyFMI together with the Python simulation package Assimulo adds industrial grade simulation capabilities of FMUs to Python.
PyFMI is available as a stand-alone package. Using PyFMI together with the Python simulation package Assimulo adds industrial grade simulation capabilities of FMUs to Python.
</p><p>
The latest version is available for download <a target="_parent" href="http://pypi.python.org/pypi/PyFMI/">here</a>
The latest version can be found <a target="_parent" href="https://github.com/modelon-community/PyFMI">here</a>
</p>


Expand Down
2 changes: 0 additions & 2 deletions doc/sphinx/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ Tutorial

This tutorial is intended to give a short introduction on how to use the PyFMI package to load an FMU into Python and to simulate the given model.

For a more detailed description on how to use PyFMI, see the user's documentation in `JModelica.org <https://jmodelica.org>`_

Loading an FMU into Python
============================

Expand Down
4 changes: 0 additions & 4 deletions src/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
The JModelica.org <http:/www.jmodelica.org/> Python package for common classes
and functions.
"""

__all__ = ['algorithm_drivers', 'core', 'diagnostics', 'io', 'plotting']

Expand Down
4 changes: 2 additions & 2 deletions src/common/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def create_temp_dir():
"""
Create a temporary directory for extracting an FMU in or similar
"""
# create JModelica directory for temporary files (if not already created)
# create directory for temporary files (if not already created)
if not os.path.exists(tmp_location):
try: #Account for race conditions
os.makedirs(tmp_location)
Expand All @@ -410,7 +410,7 @@ def create_temp_file():
"""
Create a temporary file.
"""
# create JModelica directory for temporary files (if not already created)
# create directory for temporary files (if not already created)
if not os.path.exists(tmp_location):
os.makedirs(tmp_location)

Expand Down
5 changes: 2 additions & 3 deletions src/common/plotting/plot_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
except ImportError:
print("WX-Python not found. The GUI will not work.")

#JModelica related imports
from pyfmi.common.io import ResultDymolaTextual
from pyfmi.common.io import ResultDymolaBinary
from pyfmi.common.io import ResultCSVTextual
Expand Down Expand Up @@ -88,7 +87,7 @@ class MainGUI(wx.Frame):

def __init__(self, parent, ID, filename=None):

self.title = "JModelica.org Plot GUI"
self.title = "PyFMI Plot GUI"
wx.Frame.__init__(self, parent, ID, self.title,
wx.DefaultPosition, wx.Size(self.sizeHeightDefault, self.sizeLengthDefault))

Expand Down Expand Up @@ -260,7 +259,7 @@ def OnMenuExit(self, event):
self.Destroy() #Close the GUI

def OnMenuAbout(self, event):
dlg = wx.MessageDialog(self, 'JModelica.org Plot GUI.\n', 'About',
dlg = wx.MessageDialog(self, 'PyFMI Plot GUI.\n', 'About',
wx.OK | wx.ICON_INFORMATION)
dlg.ShowModal()
dlg.Destroy()
Expand Down
3 changes: 0 additions & 3 deletions src/pyfmi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
The JModelica.org Python package for working with FMI <http:/www.jmodelica.org/>
"""

__all__ = ['fmi_algorithm_drivers', 'examples', 'fmi', 'common']

Expand Down
2 changes: 1 addition & 1 deletion src/pyfmi/examples/fmi20_bouncing_ball_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

def run_demo(with_plots=True):
"""
This example shows how to use the raw (JModelica.org) FMI interface for
This example shows how to use the raw FMI interface for
simulation of an FMU.

FMU = bouncingBall.fmu
Expand Down
2 changes: 1 addition & 1 deletion src/pyfmi/examples/fmi_bouncing_ball.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

def run_demo(with_plots=True, version="2.0"):
"""
Demonstrates how to use JModelica.org for simulation of
Demonstrates how to use PyFMI / Assimulo for simulation of
ME FMUs version 1.0 and 2.0.
"""
if version == '1.0':
Expand Down
2 changes: 1 addition & 1 deletion src/pyfmi/examples/fmi_bouncing_ball_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

def run_demo(with_plots=True):
"""
This example shows how to use the raw (JModelica.org) FMI interface for
This example shows how to use the raw FMI interface for
simulation of an FMU.

FMU = bouncingBall.fmu
Expand Down