pythonfmu3 0.2.2__py3-none-any.whl → 0.2.2.2__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.
Potentially problematic release.
This version of pythonfmu3 might be problematic. Click here for more details.
- 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/ALL_BUILD.vcxproj +184 -0
- pythonfmu3/pythonfmu-export/build/ALL_BUILD.vcxproj.filters +8 -0
- pythonfmu3/pythonfmu-export/build/CMakeCache.txt +369 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/0ee4db0675778dfba98c7160896d5a45/generate.stamp.rule +1 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeCCompiler.cmake +72 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeCXXCompiler.cmake +83 -0
- 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 +6 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeSystem.cmake +15 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/CMakeCCompilerId.c +838 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/CompilerIdC.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/CompilerIdC.vcxproj +71 -0
- 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 +11 -0
- 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 +2 -0
- 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 +826 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/CompilerIdCXX.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/CompilerIdCXX.vcxproj +71 -0
- 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 +11 -0
- 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 +2 -0
- 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 +1 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/VCTargetsPath.vcxproj +31 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/x64/Debug/VCTargetsPath.recipe +11 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/x64/Debug/VCTargetsPath.tlog/VCTargetsPath.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeCCompiler.cmake +81 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeCXXCompiler.cmake +101 -0
- 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 +6 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeSystem.cmake +15 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/CMakeCCompilerId.c +904 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/CompilerIdC.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/CompilerIdC.vcxproj +72 -0
- 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 +11 -0
- 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 +2 -0
- 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 +919 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/CompilerIdCXX.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/CompilerIdCXX.vcxproj +72 -0
- 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 +11 -0
- 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 +2 -0
- 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 +1 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/VCTargetsPath.vcxproj +31 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/x64/Debug/VCTargetsPath.recipe +11 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/x64/Debug/VCTargetsPath.tlog/VCTargetsPath.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/CMakeConfigureLog.yaml +568 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/CMakeOutput.log +357 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/TargetDirectories.txt +3 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/cmake.check_cache +1 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/generate.stamp +1 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/generate.stamp.depend +28 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/generate.stamp.list +2 -0
- pythonfmu3/pythonfmu-export/build/ZERO_CHECK.vcxproj +174 -0
- pythonfmu3/pythonfmu-export/build/ZERO_CHECK.vcxproj.filters +13 -0
- pythonfmu3/pythonfmu-export/build/cmake_install.cmake +50 -0
- pythonfmu3/pythonfmu-export/build/install_manifest.txt +0 -0
- pythonfmu3/pythonfmu-export/build/pythonfmu-export.sln +53 -0
- pythonfmu3/pythonfmu-export/build/src/CMakeFiles/generate.stamp +1 -0
- pythonfmu3/pythonfmu-export/build/src/CMakeFiles/generate.stamp.depend +2 -0
- 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 +34 -0
- 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 +1885 -0
- 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 +3 -0
- 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 +10 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CustomBuild.read.1.tlog +1 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CustomBuild.write.1.tlog +2 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.command.1.tlog +1 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.read.1.tlog +1 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.read.3.tlog +1 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.write.1.tlog +1 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/pythonfmu-export.lastbuildstate +2 -0
- 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 +3 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/RelWithDebInfo/objects.txt +3 -0
- 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 +538 -0
- 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 +3 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.dll.recipe +14 -0
- 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 +10 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CustomBuild.read.1.tlog +1 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CustomBuild.write.1.tlog +2 -0
- 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 +2 -0
- 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 +414 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.vcxproj.filters +48 -0
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.recipe +11 -0
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.command.1.tlog +10 -0
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.read.1.tlog +29 -0
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.write.1.tlog +3 -0
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/ZERO_CHECK.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.recipe +17 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/ALL_BUILD.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.command.1.tlog +10 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.read.1.tlog +27 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.write.1.tlog +2 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.recipe +11 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.command.1.tlog +10 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.read.1.tlog +29 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.write.1.tlog +3 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/ZERO_CHECK.lastbuildstate +2 -0
- 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/resources/binaries/x86_64-windows1/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.dist-info/LICENSE → pythonfmu3-0.2.2.2.dist-info/LICENSE.txt +23 -23
- {pythonfmu3-0.2.2.dist-info → pythonfmu3-0.2.2.2.dist-info}/METADATA +9 -6
- pythonfmu3-0.2.2.2.dist-info/RECORD +200 -0
- {pythonfmu3-0.2.2.dist-info → pythonfmu3-0.2.2.2.dist-info}/WHEEL +1 -1
- {pythonfmu3-0.2.2.dist-info → pythonfmu3-0.2.2.2.dist-info}/entry_points.txt +1 -0
- pythonfmu3-0.2.2.dist-info/RECORD +0 -54
- {pythonfmu3-0.2.2.dist-info → pythonfmu3-0.2.2.2.dist-info}/top_level.txt +0 -0
pythonfmu3/tests/utils.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
from pythonfmu3.variables import Boolean, Int32, UInt64, Float64, ModelVariable, String
|
|
2
|
-
|
|
3
|
-
class UInt64ValType(int): pass
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
FMI2PY = dict((
|
|
7
|
-
(Boolean, bool),
|
|
8
|
-
(Int32, int),
|
|
9
|
-
(Float64, float),
|
|
10
|
-
(String, str),
|
|
11
|
-
(UInt64, UInt64ValType),
|
|
12
|
-
))
|
|
13
|
-
PY2FMI = dict([(v, k) for k, v in FMI2PY.items()])
|
|
1
|
+
from pythonfmu3.variables import Boolean, Int32, UInt64, Float64, ModelVariable, String
|
|
2
|
+
|
|
3
|
+
class UInt64ValType(int): pass
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
FMI2PY = dict((
|
|
7
|
+
(Boolean, bool),
|
|
8
|
+
(Int32, int),
|
|
9
|
+
(Float64, float),
|
|
10
|
+
(String, str),
|
|
11
|
+
(UInt64, UInt64ValType),
|
|
12
|
+
))
|
|
13
|
+
PY2FMI = dict([(v, k) for k, v in FMI2PY.items()])
|
pythonfmu3/unit.py
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
from xml.etree.ElementTree import Element
|
|
2
|
-
|
|
3
|
-
class BaseUnit(object):
|
|
4
|
-
tag = "BaseUnit"
|
|
5
|
-
base_units = {
|
|
6
|
-
"kg": 0,
|
|
7
|
-
"m": 0,
|
|
8
|
-
"s": 0,
|
|
9
|
-
"A": 0,
|
|
10
|
-
"K": 0,
|
|
11
|
-
"mol": 0,
|
|
12
|
-
"cd": 0,
|
|
13
|
-
"rad": 0,
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
def __init__(self, factor=1.0, offset=0.0, **kwargs) -> None:
|
|
17
|
-
self._factor = factor
|
|
18
|
-
self._offset = offset
|
|
19
|
-
self._units = {**BaseUnit.base_units, **kwargs}
|
|
20
|
-
|
|
21
|
-
@property
|
|
22
|
-
def units(self):
|
|
23
|
-
return {key: str(value) for key, value in self._units.items() if value != 0}
|
|
24
|
-
|
|
25
|
-
def to_xml(self):
|
|
26
|
-
"""Convert the variable to XML node.
|
|
27
|
-
|
|
28
|
-
Returns
|
|
29
|
-
xml.etree.ElementTree.Element: XML node
|
|
30
|
-
"""
|
|
31
|
-
attrib = dict()
|
|
32
|
-
if self._factor != 1.0:
|
|
33
|
-
attrib["factor"] = str(self._factor)
|
|
34
|
-
if self._offset != 0.0:
|
|
35
|
-
attrib["offset"] = str(self._offset)
|
|
36
|
-
attrib.update(self.units)
|
|
37
|
-
ele = Element(self.tag, attrib)
|
|
38
|
-
return ele
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
class Unit(object):
|
|
42
|
-
tag = "Unit"
|
|
43
|
-
|
|
44
|
-
def __init__(self, name, **kwargs):
|
|
45
|
-
self._name = name
|
|
46
|
-
self._base_unit = BaseUnit(**kwargs)
|
|
47
|
-
|
|
48
|
-
@property
|
|
49
|
-
def name(self) -> str:
|
|
50
|
-
return self._name
|
|
51
|
-
|
|
52
|
-
def to_xml(self) -> Element:
|
|
53
|
-
"""Convert the variable to XML node.
|
|
54
|
-
|
|
55
|
-
Returns
|
|
56
|
-
xml.etree.ElementTree.Element: XML node
|
|
57
|
-
"""
|
|
58
|
-
attrib = dict()
|
|
59
|
-
attrib["name"] = self._name
|
|
60
|
-
ele = Element(self.tag, attrib)
|
|
61
|
-
ele.append(self._base_unit.to_xml())
|
|
62
|
-
return ele
|
|
1
|
+
from xml.etree.ElementTree import Element
|
|
2
|
+
|
|
3
|
+
class BaseUnit(object):
|
|
4
|
+
tag = "BaseUnit"
|
|
5
|
+
base_units = {
|
|
6
|
+
"kg": 0,
|
|
7
|
+
"m": 0,
|
|
8
|
+
"s": 0,
|
|
9
|
+
"A": 0,
|
|
10
|
+
"K": 0,
|
|
11
|
+
"mol": 0,
|
|
12
|
+
"cd": 0,
|
|
13
|
+
"rad": 0,
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
def __init__(self, factor=1.0, offset=0.0, **kwargs) -> None:
|
|
17
|
+
self._factor = factor
|
|
18
|
+
self._offset = offset
|
|
19
|
+
self._units = {**BaseUnit.base_units, **kwargs}
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def units(self):
|
|
23
|
+
return {key: str(value) for key, value in self._units.items() if value != 0}
|
|
24
|
+
|
|
25
|
+
def to_xml(self):
|
|
26
|
+
"""Convert the variable to XML node.
|
|
27
|
+
|
|
28
|
+
Returns
|
|
29
|
+
xml.etree.ElementTree.Element: XML node
|
|
30
|
+
"""
|
|
31
|
+
attrib = dict()
|
|
32
|
+
if self._factor != 1.0:
|
|
33
|
+
attrib["factor"] = str(self._factor)
|
|
34
|
+
if self._offset != 0.0:
|
|
35
|
+
attrib["offset"] = str(self._offset)
|
|
36
|
+
attrib.update(self.units)
|
|
37
|
+
ele = Element(self.tag, attrib)
|
|
38
|
+
return ele
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class Unit(object):
|
|
42
|
+
tag = "Unit"
|
|
43
|
+
|
|
44
|
+
def __init__(self, name, **kwargs):
|
|
45
|
+
self._name = name
|
|
46
|
+
self._base_unit = BaseUnit(**kwargs)
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def name(self) -> str:
|
|
50
|
+
return self._name
|
|
51
|
+
|
|
52
|
+
def to_xml(self) -> Element:
|
|
53
|
+
"""Convert the variable to XML node.
|
|
54
|
+
|
|
55
|
+
Returns
|
|
56
|
+
xml.etree.ElementTree.Element: XML node
|
|
57
|
+
"""
|
|
58
|
+
attrib = dict()
|
|
59
|
+
attrib["name"] = self._name
|
|
60
|
+
ele = Element(self.tag, attrib)
|
|
61
|
+
ele.append(self._base_unit.to_xml())
|
|
62
|
+
return ele
|
pythonfmu3/variable_types.py
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
from typing import Optional
|
|
3
|
-
from xml.etree.ElementTree import Element
|
|
4
|
-
|
|
5
|
-
class VariableType(object):
|
|
6
|
-
|
|
7
|
-
def __init__(self, tag, name, **kwargs):
|
|
8
|
-
self._tag = tag
|
|
9
|
-
self._attrs = {
|
|
10
|
-
"name": name,
|
|
11
|
-
}
|
|
12
|
-
self._attrs.update(**kwargs)
|
|
13
|
-
|
|
14
|
-
@property
|
|
15
|
-
def name(self) -> str:
|
|
16
|
-
"""str: Variable name"""
|
|
17
|
-
return self._attrs["name"]
|
|
18
|
-
|
|
19
|
-
def to_xml(self) -> Element:
|
|
20
|
-
"""Convert the variable to XML node.
|
|
21
|
-
|
|
22
|
-
Returns
|
|
23
|
-
xml.etree.ElementTree.Element: XML node
|
|
24
|
-
"""
|
|
25
|
-
attrib = dict()
|
|
26
|
-
for key, value in self._attrs.items():
|
|
27
|
-
if value is not None:
|
|
28
|
-
attrib[key] = str(value.name if isinstance(value, Enum) else value)
|
|
29
|
-
return Element(self._tag, attrib)
|
|
30
|
-
|
|
31
|
-
class Float64Type(VariableType):
|
|
32
|
-
tag = "Float64Type"
|
|
33
|
-
|
|
34
|
-
def __init__(self, name, **kwargs):
|
|
35
|
-
super().__init__(self.tag, name, **kwargs)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
class Item(object):
|
|
39
|
-
tag = "Item"
|
|
40
|
-
|
|
41
|
-
def __init__(self, name: str, value: int, description: str = "", **kwargs):
|
|
42
|
-
self.__attrs = {
|
|
43
|
-
"name": name,
|
|
44
|
-
"value": str(value),
|
|
45
|
-
"description": description
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
def name(self) -> str:
|
|
49
|
-
return self.__attrs["name"]
|
|
50
|
-
|
|
51
|
-
@property
|
|
52
|
-
def value(self) -> str:
|
|
53
|
-
return self.__attrs["value"]
|
|
54
|
-
|
|
55
|
-
@property
|
|
56
|
-
def description(self) -> Optional[str]:
|
|
57
|
-
return self.__attrs["description"]
|
|
58
|
-
|
|
59
|
-
def to_xml(self) -> Element:
|
|
60
|
-
"""Convert the variable to XML node.
|
|
61
|
-
|
|
62
|
-
Returns
|
|
63
|
-
xml.etree.ElementTree.Element: XML node
|
|
64
|
-
"""
|
|
65
|
-
attrib = dict()
|
|
66
|
-
for key, value in self.__attrs.items():
|
|
67
|
-
if value is not None:
|
|
68
|
-
attrib[key] = str(value.name if isinstance(value, Enum) else value)
|
|
69
|
-
return Element(self.tag, attrib)
|
|
70
|
-
|
|
71
|
-
def __repr__(self) -> str:
|
|
72
|
-
return f"{self.__class__.__name__}" \
|
|
73
|
-
f"(name={self.name}, " \
|
|
74
|
-
f"value={self.value}, " \
|
|
75
|
-
f"description={self.description})"
|
|
76
|
-
|
|
77
|
-
class EnumerationType(VariableType):
|
|
78
|
-
tag = "EnumerationType"
|
|
79
|
-
|
|
80
|
-
def __init__(self, name: str, values: Optional[Enum] = None, **kwargs):
|
|
81
|
-
super().__init__(self.tag, name, **kwargs)
|
|
82
|
-
self._items = {}
|
|
83
|
-
|
|
84
|
-
for val in values:
|
|
85
|
-
self.add_value(name = val.name, value = val.value)
|
|
86
|
-
|
|
87
|
-
def add_value(self, name: str, value: int, description: str = "", **kwargs):
|
|
88
|
-
self._items[name] = Item(name, value, description, **kwargs)
|
|
89
|
-
|
|
90
|
-
def get_value(self, name):
|
|
91
|
-
return self._items[name]
|
|
92
|
-
|
|
93
|
-
def to_xml(self) -> Element:
|
|
94
|
-
"""Convert the variable to XML node.
|
|
95
|
-
|
|
96
|
-
Returns
|
|
97
|
-
xml.etree.ElementTree.Element: XML node
|
|
98
|
-
"""
|
|
99
|
-
parent = super().to_xml()
|
|
100
|
-
for _, item in self._items.items():
|
|
101
|
-
parent.append(item.to_xml())
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from typing import Optional
|
|
3
|
+
from xml.etree.ElementTree import Element
|
|
4
|
+
|
|
5
|
+
class VariableType(object):
|
|
6
|
+
|
|
7
|
+
def __init__(self, tag, name, **kwargs):
|
|
8
|
+
self._tag = tag
|
|
9
|
+
self._attrs = {
|
|
10
|
+
"name": name,
|
|
11
|
+
}
|
|
12
|
+
self._attrs.update(**kwargs)
|
|
13
|
+
|
|
14
|
+
@property
|
|
15
|
+
def name(self) -> str:
|
|
16
|
+
"""str: Variable name"""
|
|
17
|
+
return self._attrs["name"]
|
|
18
|
+
|
|
19
|
+
def to_xml(self) -> Element:
|
|
20
|
+
"""Convert the variable to XML node.
|
|
21
|
+
|
|
22
|
+
Returns
|
|
23
|
+
xml.etree.ElementTree.Element: XML node
|
|
24
|
+
"""
|
|
25
|
+
attrib = dict()
|
|
26
|
+
for key, value in self._attrs.items():
|
|
27
|
+
if value is not None:
|
|
28
|
+
attrib[key] = str(value.name if isinstance(value, Enum) else value)
|
|
29
|
+
return Element(self._tag, attrib)
|
|
30
|
+
|
|
31
|
+
class Float64Type(VariableType):
|
|
32
|
+
tag = "Float64Type"
|
|
33
|
+
|
|
34
|
+
def __init__(self, name, **kwargs):
|
|
35
|
+
super().__init__(self.tag, name, **kwargs)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class Item(object):
|
|
39
|
+
tag = "Item"
|
|
40
|
+
|
|
41
|
+
def __init__(self, name: str, value: int, description: str = "", **kwargs):
|
|
42
|
+
self.__attrs = {
|
|
43
|
+
"name": name,
|
|
44
|
+
"value": str(value),
|
|
45
|
+
"description": description
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
def name(self) -> str:
|
|
49
|
+
return self.__attrs["name"]
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def value(self) -> str:
|
|
53
|
+
return self.__attrs["value"]
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def description(self) -> Optional[str]:
|
|
57
|
+
return self.__attrs["description"]
|
|
58
|
+
|
|
59
|
+
def to_xml(self) -> Element:
|
|
60
|
+
"""Convert the variable to XML node.
|
|
61
|
+
|
|
62
|
+
Returns
|
|
63
|
+
xml.etree.ElementTree.Element: XML node
|
|
64
|
+
"""
|
|
65
|
+
attrib = dict()
|
|
66
|
+
for key, value in self.__attrs.items():
|
|
67
|
+
if value is not None:
|
|
68
|
+
attrib[key] = str(value.name if isinstance(value, Enum) else value)
|
|
69
|
+
return Element(self.tag, attrib)
|
|
70
|
+
|
|
71
|
+
def __repr__(self) -> str:
|
|
72
|
+
return f"{self.__class__.__name__}" \
|
|
73
|
+
f"(name={self.name}, " \
|
|
74
|
+
f"value={self.value}, " \
|
|
75
|
+
f"description={self.description})"
|
|
76
|
+
|
|
77
|
+
class EnumerationType(VariableType):
|
|
78
|
+
tag = "EnumerationType"
|
|
79
|
+
|
|
80
|
+
def __init__(self, name: str, values: Optional[Enum] = None, **kwargs):
|
|
81
|
+
super().__init__(self.tag, name, **kwargs)
|
|
82
|
+
self._items = {}
|
|
83
|
+
|
|
84
|
+
for val in values:
|
|
85
|
+
self.add_value(name = val.name, value = val.value)
|
|
86
|
+
|
|
87
|
+
def add_value(self, name: str, value: int, description: str = "", **kwargs):
|
|
88
|
+
self._items[name] = Item(name, value, description, **kwargs)
|
|
89
|
+
|
|
90
|
+
def get_value(self, name):
|
|
91
|
+
return self._items[name]
|
|
92
|
+
|
|
93
|
+
def to_xml(self) -> Element:
|
|
94
|
+
"""Convert the variable to XML node.
|
|
95
|
+
|
|
96
|
+
Returns
|
|
97
|
+
xml.etree.ElementTree.Element: XML node
|
|
98
|
+
"""
|
|
99
|
+
parent = super().to_xml()
|
|
100
|
+
for _, item in self._items.items():
|
|
101
|
+
parent.append(item.to_xml())
|
|
102
102
|
return parent
|