pythonfmu3 0.2.2.2__py3-none-any.whl → 0.2.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pythonfmu3/__init__.py +8 -8
- pythonfmu3/__main__.py +52 -52
- pythonfmu3/_version.py +1 -1
- pythonfmu3/builder.py +260 -260
- pythonfmu3/default_experiment.py +7 -7
- pythonfmu3/deploy.py +118 -118
- pythonfmu3/enums.py +48 -48
- pythonfmu3/fmi3slave.py +438 -438
- pythonfmu3/logmsg.py +14 -14
- pythonfmu3/osutil.py +22 -22
- pythonfmu3/pythonfmu-export/.clang-format +35 -35
- pythonfmu3/pythonfmu-export/CMakeLists.txt +59 -59
- pythonfmu3/pythonfmu-export/build_unix.sh +4 -4
- pythonfmu3/pythonfmu-export/build_win.sh +4 -4
- pythonfmu3/pythonfmu-export/src/CMakeLists.txt +45 -45
- pythonfmu3/pythonfmu-export/src/cppfmu/cppfmu_common.hpp +161 -161
- pythonfmu3/pythonfmu-export/src/cppfmu/cppfmu_cs.cpp +192 -192
- pythonfmu3/pythonfmu-export/src/cppfmu/cppfmu_cs.hpp +185 -185
- pythonfmu3/pythonfmu-export/src/cppfmu/fmi_functions.cpp +937 -937
- pythonfmu3/pythonfmu-export/src/fmi/fmi3FunctionTypes.h +638 -638
- pythonfmu3/pythonfmu-export/src/fmi/fmi3Functions.h +343 -343
- pythonfmu3/pythonfmu-export/src/fmi/fmi3PlatformTypes.h +94 -94
- pythonfmu3/pythonfmu-export/src/pythonfmu/IPyState.hpp +17 -17
- pythonfmu3/pythonfmu-export/src/pythonfmu/PySlaveInstance.cpp +744 -744
- pythonfmu3/pythonfmu-export/src/pythonfmu/PySlaveInstance.hpp +111 -111
- pythonfmu3/pythonfmu-export/src/pythonfmu/PyState.hpp +84 -84
- pythonfmu3/resources/binaries/x86_64-linux/libpythonfmu-export.so +0 -0
- pythonfmu3/resources/binaries/x86_64-windows/pythonfmu-export.dll +0 -0
- pythonfmu3/tests/conftest.py +5 -5
- pythonfmu3/tests/data/csvdemo.csv +7 -7
- pythonfmu3/tests/slaves/PythonSlaveWithException.py +18 -18
- pythonfmu3/tests/slaves/localmodule.py +8 -8
- pythonfmu3/tests/slaves/pythonslave.py +52 -52
- pythonfmu3/tests/slaves/pythonslave_read_file.py +23 -23
- pythonfmu3/tests/slaves/slavewithdep.py +21 -21
- pythonfmu3/tests/test_builder.py +195 -195
- pythonfmu3/tests/test_deploy.py +48 -48
- pythonfmu3/tests/test_fmi3slave.py +152 -152
- pythonfmu3/tests/test_integration.py +350 -350
- pythonfmu3/tests/test_logger.py +180 -180
- pythonfmu3/tests/test_multiple_fmus.py +141 -141
- pythonfmu3/tests/test_variables.py +334 -334
- pythonfmu3/tests/utils.py +13 -13
- pythonfmu3/unit.py +62 -62
- pythonfmu3/variable_types.py +101 -101
- pythonfmu3/variables.py +400 -400
- {pythonfmu3-0.2.2.2.dist-info → pythonfmu3-0.2.3.dist-info}/METADATA +7 -9
- pythonfmu3-0.2.3.dist-info/RECORD +54 -0
- {pythonfmu3-0.2.2.2.dist-info → pythonfmu3-0.2.3.dist-info}/WHEEL +1 -1
- {pythonfmu3-0.2.2.2.dist-info → pythonfmu3-0.2.3.dist-info}/entry_points.txt +0 -1
- pythonfmu3-0.2.2.2.dist-info/LICENSE.txt → pythonfmu3-0.2.3.dist-info/licenses/LICENSE +23 -23
- pythonfmu3/pythonfmu-export/build/ALL_BUILD.vcxproj +0 -184
- pythonfmu3/pythonfmu-export/build/ALL_BUILD.vcxproj.filters +0 -8
- pythonfmu3/pythonfmu-export/build/CMakeCache.txt +0 -369
- pythonfmu3/pythonfmu-export/build/CMakeFiles/0ee4db0675778dfba98c7160896d5a45/generate.stamp.rule +0 -1
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeCCompiler.cmake +0 -72
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeCXXCompiler.cmake +0 -83
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeDetermineCompilerABI_C.bin +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeDetermineCompilerABI_CXX.bin +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeRCCompiler.cmake +0 -6
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeSystem.cmake +0 -15
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/CMakeCCompilerId.c +0 -838
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/CompilerIdC.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/CompilerIdC.vcxproj +0 -71
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CMakeCCompilerId.obj +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.exe.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/CompilerIdC.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -826
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/CompilerIdCXX.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/CompilerIdCXX.vcxproj +0 -71
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CMakeCXXCompilerId.obj +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.exe.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CompilerIdCXX.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/VCTargetsPath.txt +0 -1
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/VCTargetsPath.vcxproj +0 -31
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/x64/Debug/VCTargetsPath.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/x64/Debug/VCTargetsPath.tlog/VCTargetsPath.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeCCompiler.cmake +0 -81
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeCXXCompiler.cmake +0 -101
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeDetermineCompilerABI_C.bin +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeDetermineCompilerABI_CXX.bin +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeRCCompiler.cmake +0 -6
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeSystem.cmake +0 -15
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/CMakeCCompilerId.c +0 -904
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/CompilerIdC.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/CompilerIdC.vcxproj +0 -72
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CMakeCCompilerId.obj +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.exe.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/CompilerIdC.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -919
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/CompilerIdCXX.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/CompilerIdCXX.vcxproj +0 -72
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CMakeCXXCompilerId.obj +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.exe.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CompilerIdCXX.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/VCTargetsPath.txt +0 -1
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/VCTargetsPath.vcxproj +0 -31
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/x64/Debug/VCTargetsPath.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/x64/Debug/VCTargetsPath.tlog/VCTargetsPath.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/CMakeFiles/CMakeConfigureLog.yaml +0 -568
- pythonfmu3/pythonfmu-export/build/CMakeFiles/CMakeOutput.log +0 -357
- pythonfmu3/pythonfmu-export/build/CMakeFiles/TargetDirectories.txt +0 -3
- pythonfmu3/pythonfmu-export/build/CMakeFiles/cmake.check_cache +0 -1
- pythonfmu3/pythonfmu-export/build/CMakeFiles/generate.stamp +0 -1
- pythonfmu3/pythonfmu-export/build/CMakeFiles/generate.stamp.depend +0 -28
- pythonfmu3/pythonfmu-export/build/CMakeFiles/generate.stamp.list +0 -2
- pythonfmu3/pythonfmu-export/build/ZERO_CHECK.vcxproj +0 -174
- pythonfmu3/pythonfmu-export/build/ZERO_CHECK.vcxproj.filters +0 -13
- pythonfmu3/pythonfmu-export/build/cmake_install.cmake +0 -50
- pythonfmu3/pythonfmu-export/build/install_manifest.txt +0 -0
- pythonfmu3/pythonfmu-export/build/pythonfmu-export.sln +0 -53
- pythonfmu3/pythonfmu-export/build/src/CMakeFiles/generate.stamp +0 -1
- pythonfmu3/pythonfmu-export/build/src/CMakeFiles/generate.stamp.depend +0 -2
- pythonfmu3/pythonfmu-export/build/src/Debug/pythonfmu-export.pdb +0 -0
- pythonfmu3/pythonfmu-export/build/src/Release/pythonfmu-export.exp +0 -0
- pythonfmu3/pythonfmu-export/build/src/Release/pythonfmu-export.lib +0 -0
- pythonfmu3/pythonfmu-export/build/src/cmake_install.cmake +0 -34
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/PySlaveInstance.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/cppfmu_cs.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/exports.def +0 -1885
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/fmi_functions.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/objects.txt +0 -3
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CustomBuild.command.1.tlog +0 -10
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CustomBuild.read.1.tlog +0 -1
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CustomBuild.write.1.tlog +0 -2
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.command.1.tlog +0 -1
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.read.1.tlog +0 -1
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.read.3.tlog +0 -1
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.write.1.tlog +0 -1
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/pythonfmu-export.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/unsuccessfulbuild +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/vc142.pdb +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/MinSizeRel/objects.txt +0 -3
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/RelWithDebInfo/objects.txt +0 -3
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/PySlaveInstance.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/cppfmu_cs.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/exports.def +0 -538
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/fmi_functions.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/objects.txt +0 -3
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.dll.recipe +0 -14
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CustomBuild.command.1.tlog +0 -10
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CustomBuild.read.1.tlog +0 -1
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CustomBuild.write.1.tlog +0 -2
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/link.delete.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/pythonfmu-export.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/pythonfmu-export.write.1u.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.vcxproj +0 -414
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.vcxproj.filters +0 -48
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.command.1.tlog +0 -10
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.read.1.tlog +0 -29
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.write.1.tlog +0 -3
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/ZERO_CHECK.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.recipe +0 -17
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/ALL_BUILD.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.command.1.tlog +0 -10
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.read.1.tlog +0 -27
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.write.1.tlog +0 -2
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.command.1.tlog +0 -10
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.read.1.tlog +0 -29
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.write.1.tlog +0 -3
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/ZERO_CHECK.lastbuildstate +0 -2
- pythonfmu3/resources/binaries/x86_64-windows1/pythonfmu-export.dll +0 -0
- pythonfmu3-0.2.2.2.dist-info/RECORD +0 -200
- {pythonfmu3-0.2.2.2.dist-info → pythonfmu3-0.2.3.dist-info}/top_level.txt +0 -0
|
@@ -1,152 +1,152 @@
|
|
|
1
|
-
import pytest
|
|
2
|
-
|
|
3
|
-
from pythonfmu3 import Fmi3Slave
|
|
4
|
-
from pythonfmu3 import __version__ as VERSION
|
|
5
|
-
|
|
6
|
-
from .utils import FMI2PY, PY2FMI
|
|
7
|
-
|
|
8
|
-
# TODO test xml
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@pytest.mark.parametrize("model", ["theModelName", None])
|
|
12
|
-
def test_Fmi3Slave_constructor(model):
|
|
13
|
-
|
|
14
|
-
class Slave(Fmi3Slave):
|
|
15
|
-
|
|
16
|
-
def __init__(self, **kwargs):
|
|
17
|
-
super().__init__(**kwargs)
|
|
18
|
-
if model is not None:
|
|
19
|
-
self.modelName = model
|
|
20
|
-
|
|
21
|
-
def do_step(self, t, dt):
|
|
22
|
-
return True
|
|
23
|
-
|
|
24
|
-
if model is None:
|
|
25
|
-
slave = Slave(instance_name="slaveInstance")
|
|
26
|
-
assert slave.modelName == "Slave"
|
|
27
|
-
assert slave.instance_name == "slaveInstance"
|
|
28
|
-
else:
|
|
29
|
-
slave = Slave(instance_name="slaveInstance")
|
|
30
|
-
assert slave.modelName == model
|
|
31
|
-
assert slave.instance_name == "slaveInstance"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
def test_Fmi3Slave_generation_tool():
|
|
35
|
-
class Slave(Fmi3Slave):
|
|
36
|
-
def do_step(self, t, dt):
|
|
37
|
-
return True
|
|
38
|
-
|
|
39
|
-
slave = Slave(instance_name="instance")
|
|
40
|
-
xml = slave.to_xml()
|
|
41
|
-
|
|
42
|
-
assert xml.attrib['generationTool'] == f"PythonFMU3 {VERSION}"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
@pytest.mark.parametrize("fmi_type", FMI2PY)
|
|
46
|
-
@pytest.mark.parametrize("value", [
|
|
47
|
-
False,
|
|
48
|
-
22,
|
|
49
|
-
2./3.,
|
|
50
|
-
"hello_world"
|
|
51
|
-
])
|
|
52
|
-
def test_Fmi3Slave_getters(fmi_type, value):
|
|
53
|
-
|
|
54
|
-
class Slave(Fmi3Slave):
|
|
55
|
-
|
|
56
|
-
def __init__(self, **kwargs):
|
|
57
|
-
super().__init__(**kwargs)
|
|
58
|
-
self.var = value
|
|
59
|
-
self.register_variable(PY2FMI[type(value)]("var"))
|
|
60
|
-
|
|
61
|
-
def do_step(self, t, dt):
|
|
62
|
-
return True
|
|
63
|
-
|
|
64
|
-
py_type = FMI2PY[fmi_type]
|
|
65
|
-
fmi_type_name = fmi_type.__qualname__.lower()
|
|
66
|
-
|
|
67
|
-
slave = Slave(instance_name="slaveInstance")
|
|
68
|
-
if type(value) is py_type:
|
|
69
|
-
assert getattr(slave, f"get_{fmi_type_name}")([0]) == [value]
|
|
70
|
-
else:
|
|
71
|
-
with pytest.raises(TypeError):
|
|
72
|
-
getattr(slave, f"get_{fmi_type_name}")([0])
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
@pytest.mark.parametrize("fmi_type", FMI2PY)
|
|
76
|
-
@pytest.mark.parametrize("value", [
|
|
77
|
-
False,
|
|
78
|
-
22,
|
|
79
|
-
2./3.,
|
|
80
|
-
"hello_world",
|
|
81
|
-
])
|
|
82
|
-
def test_Fmi3Slave_setters(fmi_type, value):
|
|
83
|
-
|
|
84
|
-
class Slave(Fmi3Slave):
|
|
85
|
-
|
|
86
|
-
def __init__(self, **kwargs):
|
|
87
|
-
super().__init__(**kwargs)
|
|
88
|
-
self.var = None
|
|
89
|
-
self.register_variable(PY2FMI[type(value)]("var"))
|
|
90
|
-
|
|
91
|
-
def do_step(self, t, dt):
|
|
92
|
-
return True
|
|
93
|
-
|
|
94
|
-
slave = Slave(instance_name="slaveInstance")
|
|
95
|
-
py_type = FMI2PY[fmi_type]
|
|
96
|
-
fmi_type_name = fmi_type.__qualname__.lower()
|
|
97
|
-
|
|
98
|
-
if type(value) is py_type:
|
|
99
|
-
set_method = getattr(slave, f"set_{fmi_type_name}")
|
|
100
|
-
set_method([0], [value])
|
|
101
|
-
assert getattr(slave, f"get_{fmi_type_name}")([0]) == [value]
|
|
102
|
-
else:
|
|
103
|
-
set_method = getattr(slave, f"set_{fmi_type_name}")
|
|
104
|
-
with pytest.raises(TypeError):
|
|
105
|
-
set_method([0], [value])
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
def test_Fmi3Slave_log_categories():
|
|
109
|
-
class Slave(Fmi3Slave):
|
|
110
|
-
def do_step(self, t, dt):
|
|
111
|
-
return True
|
|
112
|
-
|
|
113
|
-
slave = Slave(instance_name="instance")
|
|
114
|
-
xml = slave.to_xml()
|
|
115
|
-
|
|
116
|
-
categories = xml.find("LogCategories")
|
|
117
|
-
assert len(categories) == len(Slave.log_categories)
|
|
118
|
-
for category, description in Slave.log_categories.items():
|
|
119
|
-
assert categories.find(f"Category[@name='{category}'][@description='{description}']") is not None
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
@pytest.mark.parametrize("new_categories", [
|
|
123
|
-
dict(),
|
|
124
|
-
{
|
|
125
|
-
"logStatusWarning": "Log messages with fmi3Warning status.",
|
|
126
|
-
"logStatusError": "Log messages with fmi3Error status.",
|
|
127
|
-
"logStatusFatal": "Log messages with fmi3Fatal status.",
|
|
128
|
-
"logAll": "Log all messages."
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"logCustom1": "My first custom log category",
|
|
132
|
-
"logCustom2": "My second custom log category"
|
|
133
|
-
}
|
|
134
|
-
])
|
|
135
|
-
def test_Fmi3Slave_customized_log_categories(new_categories):
|
|
136
|
-
class Slave(Fmi3Slave):
|
|
137
|
-
log_categories = new_categories
|
|
138
|
-
|
|
139
|
-
def do_step(self, t, dt):
|
|
140
|
-
return True
|
|
141
|
-
|
|
142
|
-
slave = Slave(instance_name="instance")
|
|
143
|
-
xml = slave.to_xml()
|
|
144
|
-
|
|
145
|
-
categories = xml.find("LogCategories")
|
|
146
|
-
|
|
147
|
-
if len(new_categories) > 0:
|
|
148
|
-
assert len(categories) == len(Slave.log_categories)
|
|
149
|
-
for category, description in Slave.log_categories.items():
|
|
150
|
-
assert categories.find(f"Category[@name='{category}'][@description='{description}']") is not None
|
|
151
|
-
else:
|
|
152
|
-
assert categories is None
|
|
1
|
+
import pytest
|
|
2
|
+
|
|
3
|
+
from pythonfmu3 import Fmi3Slave
|
|
4
|
+
from pythonfmu3 import __version__ as VERSION
|
|
5
|
+
|
|
6
|
+
from .utils import FMI2PY, PY2FMI
|
|
7
|
+
|
|
8
|
+
# TODO test xml
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@pytest.mark.parametrize("model", ["theModelName", None])
|
|
12
|
+
def test_Fmi3Slave_constructor(model):
|
|
13
|
+
|
|
14
|
+
class Slave(Fmi3Slave):
|
|
15
|
+
|
|
16
|
+
def __init__(self, **kwargs):
|
|
17
|
+
super().__init__(**kwargs)
|
|
18
|
+
if model is not None:
|
|
19
|
+
self.modelName = model
|
|
20
|
+
|
|
21
|
+
def do_step(self, t, dt):
|
|
22
|
+
return True
|
|
23
|
+
|
|
24
|
+
if model is None:
|
|
25
|
+
slave = Slave(instance_name="slaveInstance")
|
|
26
|
+
assert slave.modelName == "Slave"
|
|
27
|
+
assert slave.instance_name == "slaveInstance"
|
|
28
|
+
else:
|
|
29
|
+
slave = Slave(instance_name="slaveInstance")
|
|
30
|
+
assert slave.modelName == model
|
|
31
|
+
assert slave.instance_name == "slaveInstance"
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def test_Fmi3Slave_generation_tool():
|
|
35
|
+
class Slave(Fmi3Slave):
|
|
36
|
+
def do_step(self, t, dt):
|
|
37
|
+
return True
|
|
38
|
+
|
|
39
|
+
slave = Slave(instance_name="instance")
|
|
40
|
+
xml = slave.to_xml()
|
|
41
|
+
|
|
42
|
+
assert xml.attrib['generationTool'] == f"PythonFMU3 {VERSION}"
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@pytest.mark.parametrize("fmi_type", FMI2PY)
|
|
46
|
+
@pytest.mark.parametrize("value", [
|
|
47
|
+
False,
|
|
48
|
+
22,
|
|
49
|
+
2./3.,
|
|
50
|
+
"hello_world"
|
|
51
|
+
])
|
|
52
|
+
def test_Fmi3Slave_getters(fmi_type, value):
|
|
53
|
+
|
|
54
|
+
class Slave(Fmi3Slave):
|
|
55
|
+
|
|
56
|
+
def __init__(self, **kwargs):
|
|
57
|
+
super().__init__(**kwargs)
|
|
58
|
+
self.var = value
|
|
59
|
+
self.register_variable(PY2FMI[type(value)]("var"))
|
|
60
|
+
|
|
61
|
+
def do_step(self, t, dt):
|
|
62
|
+
return True
|
|
63
|
+
|
|
64
|
+
py_type = FMI2PY[fmi_type]
|
|
65
|
+
fmi_type_name = fmi_type.__qualname__.lower()
|
|
66
|
+
|
|
67
|
+
slave = Slave(instance_name="slaveInstance")
|
|
68
|
+
if type(value) is py_type:
|
|
69
|
+
assert getattr(slave, f"get_{fmi_type_name}")([0]) == [value]
|
|
70
|
+
else:
|
|
71
|
+
with pytest.raises(TypeError):
|
|
72
|
+
getattr(slave, f"get_{fmi_type_name}")([0])
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@pytest.mark.parametrize("fmi_type", FMI2PY)
|
|
76
|
+
@pytest.mark.parametrize("value", [
|
|
77
|
+
False,
|
|
78
|
+
22,
|
|
79
|
+
2./3.,
|
|
80
|
+
"hello_world",
|
|
81
|
+
])
|
|
82
|
+
def test_Fmi3Slave_setters(fmi_type, value):
|
|
83
|
+
|
|
84
|
+
class Slave(Fmi3Slave):
|
|
85
|
+
|
|
86
|
+
def __init__(self, **kwargs):
|
|
87
|
+
super().__init__(**kwargs)
|
|
88
|
+
self.var = None
|
|
89
|
+
self.register_variable(PY2FMI[type(value)]("var"))
|
|
90
|
+
|
|
91
|
+
def do_step(self, t, dt):
|
|
92
|
+
return True
|
|
93
|
+
|
|
94
|
+
slave = Slave(instance_name="slaveInstance")
|
|
95
|
+
py_type = FMI2PY[fmi_type]
|
|
96
|
+
fmi_type_name = fmi_type.__qualname__.lower()
|
|
97
|
+
|
|
98
|
+
if type(value) is py_type:
|
|
99
|
+
set_method = getattr(slave, f"set_{fmi_type_name}")
|
|
100
|
+
set_method([0], [value])
|
|
101
|
+
assert getattr(slave, f"get_{fmi_type_name}")([0]) == [value]
|
|
102
|
+
else:
|
|
103
|
+
set_method = getattr(slave, f"set_{fmi_type_name}")
|
|
104
|
+
with pytest.raises(TypeError):
|
|
105
|
+
set_method([0], [value])
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
def test_Fmi3Slave_log_categories():
|
|
109
|
+
class Slave(Fmi3Slave):
|
|
110
|
+
def do_step(self, t, dt):
|
|
111
|
+
return True
|
|
112
|
+
|
|
113
|
+
slave = Slave(instance_name="instance")
|
|
114
|
+
xml = slave.to_xml()
|
|
115
|
+
|
|
116
|
+
categories = xml.find("LogCategories")
|
|
117
|
+
assert len(categories) == len(Slave.log_categories)
|
|
118
|
+
for category, description in Slave.log_categories.items():
|
|
119
|
+
assert categories.find(f"Category[@name='{category}'][@description='{description}']") is not None
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
@pytest.mark.parametrize("new_categories", [
|
|
123
|
+
dict(),
|
|
124
|
+
{
|
|
125
|
+
"logStatusWarning": "Log messages with fmi3Warning status.",
|
|
126
|
+
"logStatusError": "Log messages with fmi3Error status.",
|
|
127
|
+
"logStatusFatal": "Log messages with fmi3Fatal status.",
|
|
128
|
+
"logAll": "Log all messages."
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"logCustom1": "My first custom log category",
|
|
132
|
+
"logCustom2": "My second custom log category"
|
|
133
|
+
}
|
|
134
|
+
])
|
|
135
|
+
def test_Fmi3Slave_customized_log_categories(new_categories):
|
|
136
|
+
class Slave(Fmi3Slave):
|
|
137
|
+
log_categories = new_categories
|
|
138
|
+
|
|
139
|
+
def do_step(self, t, dt):
|
|
140
|
+
return True
|
|
141
|
+
|
|
142
|
+
slave = Slave(instance_name="instance")
|
|
143
|
+
xml = slave.to_xml()
|
|
144
|
+
|
|
145
|
+
categories = xml.find("LogCategories")
|
|
146
|
+
|
|
147
|
+
if len(new_categories) > 0:
|
|
148
|
+
assert len(categories) == len(Slave.log_categories)
|
|
149
|
+
for category, description in Slave.log_categories.items():
|
|
150
|
+
assert categories.find(f"Category[@name='{category}'][@description='{description}']") is not None
|
|
151
|
+
else:
|
|
152
|
+
assert categories is None
|