Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove FMUX and JMU related code #196

Merged
merged 5 commits into from
Aug 18, 2023
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
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
--- CHANGELOG ---
--- PyFMI-NEXT_VERSION ---
* Removed utilities related to the obsolete FMUX model interface.

--- PyFMI-2.11.0 ---
* Refactored result handling for dynamic_diagnostics. It is now possible use dynamic_diagnostics with a custom result handler.
* Migrated some diagnostics functionality into a new file: src/common/diagnostics.py. This should be seamless.
Expand Down
11 changes: 0 additions & 11 deletions doc/sphinx/source/pyfmi.common.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,3 @@ Module :mod:`io`
:members:
:undoc-members:
:show-inheritance:

Module :mod:`xmlparser`
-----------------------

.. automodule:: pyfmi.common.xmlparser
:members:
:undoc-members:
:show-inheritance:



2 changes: 1 addition & 1 deletion src/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
and functions.
"""

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

import sys
python3_flag = True if sys.hexversion > 0x03000000 else False
Expand Down
25 changes: 0 additions & 25 deletions src/common/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,31 +438,6 @@ def delete_temp_dir(tmp_dir):
if os.path.exists(tmp_dir):
shutil.rmtree(tmp_dir)


def get_unit_name(class_name, unit_type='FMU'):
"""
Computes the unit name from a class name.

Parameters::

class_name --
The name of the model.

unit_type --
The unit type. Possible values: FMU, FMUX.
Default: 'FMU'

Returns::

The unit name (replaced dots with underscores).
"""
if unit_type == 'FMU':
return class_name.replace('.','_')+'.fmu'
elif unit_type == 'FMUX':
return class_name.replace('.','_')+'.fmux'
else:
raise Exception("The unit type %s is unknown" %unit_type)

def get_temp_location():
"""
Get the directory where the temporary files are placed.
Expand Down
Loading
Loading