pythonfmu3 0.2.2.2__py3-none-any.whl → 0.2.4__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.4.dist-info}/METADATA +7 -9
- pythonfmu3-0.2.4.dist-info/RECORD +54 -0
- {pythonfmu3-0.2.2.2.dist-info → pythonfmu3-0.2.4.dist-info}/WHEEL +1 -1
- {pythonfmu3-0.2.2.2.dist-info → pythonfmu3-0.2.4.dist-info}/entry_points.txt +0 -1
- pythonfmu3-0.2.2.2.dist-info/LICENSE.txt → pythonfmu3-0.2.4.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.4.dist-info}/top_level.txt +0 -0
pythonfmu3/logmsg.py
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
class LogMsg:
|
|
3
|
-
|
|
4
|
-
def __init__(self, status: int, category: str, msg: str, debug: bool):
|
|
5
|
-
self.status = status
|
|
6
|
-
self.category = category
|
|
7
|
-
self.msg = msg
|
|
8
|
-
self.debug = debug
|
|
9
|
-
|
|
10
|
-
def __str__(self) -> str:
|
|
11
|
-
return "LogMsg(status={}, category={}, msg={}, debug={}".format(self.status, self.category, self.msg, self.debug)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
|
|
2
|
+
class LogMsg:
|
|
3
|
+
|
|
4
|
+
def __init__(self, status: int, category: str, msg: str, debug: bool):
|
|
5
|
+
self.status = status
|
|
6
|
+
self.category = category
|
|
7
|
+
self.msg = msg
|
|
8
|
+
self.debug = debug
|
|
9
|
+
|
|
10
|
+
def __str__(self) -> str:
|
|
11
|
+
return "LogMsg(status={}, category={}, msg={}, debug={}".format(self.status, self.category, self.msg, self.debug)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
pythonfmu3/osutil.py
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
|
|
3
|
-
import platform
|
|
4
|
-
|
|
5
|
-
def get_fmu_arch():
|
|
6
|
-
#is_64bits = sys.maxsize > 2 ** 32
|
|
7
|
-
system = platform.system()
|
|
8
|
-
is_x86 = platform.machine() in ["i386", "AMD64", "x86_64"]
|
|
9
|
-
platforms = {"Windows": "windows", "Linux": "linux", "Darwin": "darwin"}
|
|
10
|
-
arch = "x86_64" if is_x86 else "x86"
|
|
11
|
-
return arch + "-" + platforms.get(system, "unknown")
|
|
12
|
-
|
|
13
|
-
def get_platform() -> str:
|
|
14
|
-
"""Get FMU binary platform folder name."""
|
|
15
|
-
return get_fmu_arch()
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
def get_lib_extension() -> str:
|
|
19
|
-
"""Get FMU library platform extension."""
|
|
20
|
-
platforms = {"Darwin": "dylib", "Linux": "so", "Windows": "dll"}
|
|
21
|
-
return platforms.get(platform.system(), "")
|
|
22
|
-
|
|
1
|
+
import sys
|
|
2
|
+
|
|
3
|
+
import platform
|
|
4
|
+
|
|
5
|
+
def get_fmu_arch():
|
|
6
|
+
#is_64bits = sys.maxsize > 2 ** 32
|
|
7
|
+
system = platform.system()
|
|
8
|
+
is_x86 = platform.machine() in ["i386", "AMD64", "x86_64"]
|
|
9
|
+
platforms = {"Windows": "windows", "Linux": "linux", "Darwin": "darwin"}
|
|
10
|
+
arch = "x86_64" if is_x86 else "x86"
|
|
11
|
+
return arch + "-" + platforms.get(system, "unknown")
|
|
12
|
+
|
|
13
|
+
def get_platform() -> str:
|
|
14
|
+
"""Get FMU binary platform folder name."""
|
|
15
|
+
return get_fmu_arch()
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def get_lib_extension() -> str:
|
|
19
|
+
"""Get FMU library platform extension."""
|
|
20
|
+
platforms = {"Darwin": "dylib", "Linux": "so", "Windows": "dll"}
|
|
21
|
+
return platforms.get(platform.system(), "")
|
|
22
|
+
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
Language: Cpp
|
|
2
|
-
Standard: Cpp11
|
|
3
|
-
BasedOnStyle: WebKit
|
|
4
|
-
NamespaceIndentation: None
|
|
5
|
-
IndentCaseLabels: true
|
|
6
|
-
IndentPPDirectives: AfterHash
|
|
7
|
-
FixNamespaceComments: true
|
|
8
|
-
MaxEmptyLinesToKeep: 2
|
|
9
|
-
SpaceAfterTemplateKeyword: false
|
|
10
|
-
AllowShortCaseLabelsOnASingleLine: true
|
|
11
|
-
AllowAllParametersOfDeclarationOnNextLine: true
|
|
12
|
-
AllowShortIfStatementsOnASingleLine: true
|
|
13
|
-
AllowShortBlocksOnASingleLine: true
|
|
14
|
-
AllowShortLoopsOnASingleLine: true
|
|
15
|
-
BreakBeforeBinaryOperators: None
|
|
16
|
-
Cpp11BracedListStyle: true
|
|
17
|
-
SpaceBeforeCpp11BracedList: false
|
|
18
|
-
BreakBeforeBraces: Custom
|
|
19
|
-
BraceWrapping:
|
|
20
|
-
AfterEnum: true
|
|
21
|
-
AfterStruct: true
|
|
22
|
-
AfterClass: true
|
|
23
|
-
SplitEmptyFunction: false
|
|
24
|
-
AfterFunction: true
|
|
25
|
-
AfterNamespace : true
|
|
26
|
-
AfterControlStatement: false
|
|
27
|
-
IncludeBlocks: Regroup
|
|
28
|
-
IncludeCategories:
|
|
29
|
-
- Regex: '^[<"]pythonfmu[/.]'
|
|
30
|
-
Priority: 20
|
|
31
|
-
- Regex: '^[<"](cppfmu)[/.]'
|
|
32
|
-
Priority: 30
|
|
33
|
-
- Regex: '^"'
|
|
34
|
-
Priority: 10
|
|
35
|
-
- Regex: '.*'
|
|
1
|
+
Language: Cpp
|
|
2
|
+
Standard: Cpp11
|
|
3
|
+
BasedOnStyle: WebKit
|
|
4
|
+
NamespaceIndentation: None
|
|
5
|
+
IndentCaseLabels: true
|
|
6
|
+
IndentPPDirectives: AfterHash
|
|
7
|
+
FixNamespaceComments: true
|
|
8
|
+
MaxEmptyLinesToKeep: 2
|
|
9
|
+
SpaceAfterTemplateKeyword: false
|
|
10
|
+
AllowShortCaseLabelsOnASingleLine: true
|
|
11
|
+
AllowAllParametersOfDeclarationOnNextLine: true
|
|
12
|
+
AllowShortIfStatementsOnASingleLine: true
|
|
13
|
+
AllowShortBlocksOnASingleLine: true
|
|
14
|
+
AllowShortLoopsOnASingleLine: true
|
|
15
|
+
BreakBeforeBinaryOperators: None
|
|
16
|
+
Cpp11BracedListStyle: true
|
|
17
|
+
SpaceBeforeCpp11BracedList: false
|
|
18
|
+
BreakBeforeBraces: Custom
|
|
19
|
+
BraceWrapping:
|
|
20
|
+
AfterEnum: true
|
|
21
|
+
AfterStruct: true
|
|
22
|
+
AfterClass: true
|
|
23
|
+
SplitEmptyFunction: false
|
|
24
|
+
AfterFunction: true
|
|
25
|
+
AfterNamespace : true
|
|
26
|
+
AfterControlStatement: false
|
|
27
|
+
IncludeBlocks: Regroup
|
|
28
|
+
IncludeCategories:
|
|
29
|
+
- Regex: '^[<"]pythonfmu[/.]'
|
|
30
|
+
Priority: 20
|
|
31
|
+
- Regex: '^[<"](cppfmu)[/.]'
|
|
32
|
+
Priority: 30
|
|
33
|
+
- Regex: '^"'
|
|
34
|
+
Priority: 10
|
|
35
|
+
- Regex: '.*'
|
|
36
36
|
Priority: 40
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
cmake_minimum_required(VERSION 3.10)
|
|
2
|
-
project(pythonfmu-export VERSION 0.2.0)
|
|
3
|
-
|
|
4
|
-
# ==============================================================================
|
|
5
|
-
# Build settings
|
|
6
|
-
# ==============================================================================
|
|
7
|
-
|
|
8
|
-
set(BUILD_SHARED_LIBS ON)
|
|
9
|
-
|
|
10
|
-
# ==============================================================================
|
|
11
|
-
# Global internal configuration
|
|
12
|
-
# ==============================================================================
|
|
13
|
-
|
|
14
|
-
if (MSVC)
|
|
15
|
-
# https://stackoverflow.com/questions/14172856/compile-with-mt-instead-of-md-using-cmake
|
|
16
|
-
set(CompilerFlags
|
|
17
|
-
CMAKE_CXX_FLAGS
|
|
18
|
-
CMAKE_CXX_FLAGS_DEBUG
|
|
19
|
-
CMAKE_CXX_FLAGS_RELEASE
|
|
20
|
-
CMAKE_C_FLAGS
|
|
21
|
-
CMAKE_C_FLAGS_DEBUG
|
|
22
|
-
CMAKE_C_FLAGS_RELEASE
|
|
23
|
-
)
|
|
24
|
-
foreach (CompilerFlag ${CompilerFlags})
|
|
25
|
-
string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
|
|
26
|
-
endforeach ()
|
|
27
|
-
endif ()
|
|
28
|
-
|
|
29
|
-
# Automatically export all symbols in Windows DLLs.
|
|
30
|
-
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
|
31
|
-
|
|
32
|
-
# ==============================================================================
|
|
33
|
-
# Dependencies
|
|
34
|
-
# ==============================================================================
|
|
35
|
-
|
|
36
|
-
# Force to use stable Python ABI https://docs.python.org/3/c-api/stable.html
|
|
37
|
-
add_compile_definitions(Py_LIMITED_API)
|
|
38
|
-
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
|
|
39
|
-
if (WIN32)
|
|
40
|
-
set(Python3_LIBRARIES ${Python3_LIBRARY_DIRS}/python3.lib)
|
|
41
|
-
endif ()
|
|
42
|
-
|
|
43
|
-
if (WIN32)
|
|
44
|
-
set(TARGET_PLATFORM windows)
|
|
45
|
-
elseif (APPLE)
|
|
46
|
-
set(TARGET_PLATFORM darwin)
|
|
47
|
-
else ()
|
|
48
|
-
set(TARGET_PLATFORM linux)
|
|
49
|
-
endif ()
|
|
50
|
-
|
|
51
|
-
if ("${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")
|
|
52
|
-
set(TARGET_PLATFORM x86_64-${TARGET_PLATFORM})
|
|
53
|
-
else ()
|
|
54
|
-
set(TARGET_PLATFORM x86-${TARGET_PLATFORM})
|
|
55
|
-
endif ()
|
|
56
|
-
|
|
57
|
-
message("Building pythonfmu-export for platform ${TARGET_PLATFORM}")
|
|
58
|
-
|
|
59
|
-
add_subdirectory(src)
|
|
1
|
+
cmake_minimum_required(VERSION 3.10)
|
|
2
|
+
project(pythonfmu-export VERSION 0.2.0)
|
|
3
|
+
|
|
4
|
+
# ==============================================================================
|
|
5
|
+
# Build settings
|
|
6
|
+
# ==============================================================================
|
|
7
|
+
|
|
8
|
+
set(BUILD_SHARED_LIBS ON)
|
|
9
|
+
|
|
10
|
+
# ==============================================================================
|
|
11
|
+
# Global internal configuration
|
|
12
|
+
# ==============================================================================
|
|
13
|
+
|
|
14
|
+
if (MSVC)
|
|
15
|
+
# https://stackoverflow.com/questions/14172856/compile-with-mt-instead-of-md-using-cmake
|
|
16
|
+
set(CompilerFlags
|
|
17
|
+
CMAKE_CXX_FLAGS
|
|
18
|
+
CMAKE_CXX_FLAGS_DEBUG
|
|
19
|
+
CMAKE_CXX_FLAGS_RELEASE
|
|
20
|
+
CMAKE_C_FLAGS
|
|
21
|
+
CMAKE_C_FLAGS_DEBUG
|
|
22
|
+
CMAKE_C_FLAGS_RELEASE
|
|
23
|
+
)
|
|
24
|
+
foreach (CompilerFlag ${CompilerFlags})
|
|
25
|
+
string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
|
|
26
|
+
endforeach ()
|
|
27
|
+
endif ()
|
|
28
|
+
|
|
29
|
+
# Automatically export all symbols in Windows DLLs.
|
|
30
|
+
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
|
31
|
+
|
|
32
|
+
# ==============================================================================
|
|
33
|
+
# Dependencies
|
|
34
|
+
# ==============================================================================
|
|
35
|
+
|
|
36
|
+
# Force to use stable Python ABI https://docs.python.org/3/c-api/stable.html
|
|
37
|
+
add_compile_definitions(Py_LIMITED_API)
|
|
38
|
+
find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module)
|
|
39
|
+
if (WIN32)
|
|
40
|
+
set(Python3_LIBRARIES ${Python3_LIBRARY_DIRS}/python3.lib)
|
|
41
|
+
endif ()
|
|
42
|
+
|
|
43
|
+
if (WIN32)
|
|
44
|
+
set(TARGET_PLATFORM windows)
|
|
45
|
+
elseif (APPLE)
|
|
46
|
+
set(TARGET_PLATFORM darwin)
|
|
47
|
+
else ()
|
|
48
|
+
set(TARGET_PLATFORM linux)
|
|
49
|
+
endif ()
|
|
50
|
+
|
|
51
|
+
if ("${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")
|
|
52
|
+
set(TARGET_PLATFORM x86_64-${TARGET_PLATFORM})
|
|
53
|
+
else ()
|
|
54
|
+
set(TARGET_PLATFORM x86-${TARGET_PLATFORM})
|
|
55
|
+
endif ()
|
|
56
|
+
|
|
57
|
+
message("Building pythonfmu-export for platform ${TARGET_PLATFORM}")
|
|
58
|
+
|
|
59
|
+
add_subdirectory(src)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
mkdir build
|
|
2
|
-
cd build
|
|
3
|
-
cmake .. -DCMAKE_BUILD_TYPE=Release
|
|
4
|
-
cmake --build .
|
|
1
|
+
mkdir build
|
|
2
|
+
cd build
|
|
3
|
+
cmake .. -DCMAKE_BUILD_TYPE=Release
|
|
4
|
+
cmake --build .
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
mkdir build
|
|
2
|
-
cd build
|
|
3
|
-
cmake .. -DCMAKE_BUILD_TYPE=Release -A x64
|
|
4
|
-
cmake --build . --config Release
|
|
1
|
+
mkdir build
|
|
2
|
+
cd build
|
|
3
|
+
cmake .. -DCMAKE_BUILD_TYPE=Release -A x64
|
|
4
|
+
cmake --build . --config Release
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
set(headers
|
|
3
|
-
cppfmu/cppfmu_cs.hpp
|
|
4
|
-
cppfmu/cppfmu_common.hpp
|
|
5
|
-
|
|
6
|
-
fmi/fmi3Functions.h
|
|
7
|
-
fmi/fmi3FunctionTypes.h
|
|
8
|
-
fmi/fmi3PlatformTypes.h
|
|
9
|
-
|
|
10
|
-
pythonfmu/PySlaveInstance.hpp
|
|
11
|
-
pythonfmu/PyState.hpp
|
|
12
|
-
)
|
|
13
|
-
|
|
14
|
-
set(sources
|
|
15
|
-
cppfmu/cppfmu_cs.cpp
|
|
16
|
-
cppfmu/fmi_functions.cpp
|
|
17
|
-
pythonfmu/PySlaveInstance.cpp
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
add_library(pythonfmu-export ${sources} ${headers})
|
|
21
|
-
target_compile_features(pythonfmu-export PUBLIC "cxx_std_17")
|
|
22
|
-
|
|
23
|
-
target_include_directories(pythonfmu-export
|
|
24
|
-
PRIVATE
|
|
25
|
-
"${Python3_INCLUDE_DIRS}"
|
|
26
|
-
"${CMAKE_CURRENT_SOURCE_DIR}"
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
if (WIN32)
|
|
30
|
-
target_link_libraries(pythonfmu-export PRIVATE ${Python3_LIBRARIES})
|
|
31
|
-
elseif (APPLE)
|
|
32
|
-
set_target_properties(pythonfmu-export PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
|
|
33
|
-
endif ()
|
|
34
|
-
|
|
35
|
-
if (WIN32)
|
|
36
|
-
set_target_properties(pythonfmu-export
|
|
37
|
-
PROPERTIES
|
|
38
|
-
RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_SOURCE_DIR}/../resources/binaries/${TARGET_PLATFORM}"
|
|
39
|
-
)
|
|
40
|
-
else ()
|
|
41
|
-
set_target_properties(pythonfmu-export
|
|
42
|
-
PROPERTIES
|
|
43
|
-
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/../resources/binaries/${TARGET_PLATFORM}"
|
|
44
|
-
)
|
|
45
|
-
endif ()
|
|
1
|
+
|
|
2
|
+
set(headers
|
|
3
|
+
cppfmu/cppfmu_cs.hpp
|
|
4
|
+
cppfmu/cppfmu_common.hpp
|
|
5
|
+
|
|
6
|
+
fmi/fmi3Functions.h
|
|
7
|
+
fmi/fmi3FunctionTypes.h
|
|
8
|
+
fmi/fmi3PlatformTypes.h
|
|
9
|
+
|
|
10
|
+
pythonfmu/PySlaveInstance.hpp
|
|
11
|
+
pythonfmu/PyState.hpp
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
set(sources
|
|
15
|
+
cppfmu/cppfmu_cs.cpp
|
|
16
|
+
cppfmu/fmi_functions.cpp
|
|
17
|
+
pythonfmu/PySlaveInstance.cpp
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
add_library(pythonfmu-export ${sources} ${headers})
|
|
21
|
+
target_compile_features(pythonfmu-export PUBLIC "cxx_std_17")
|
|
22
|
+
|
|
23
|
+
target_include_directories(pythonfmu-export
|
|
24
|
+
PRIVATE
|
|
25
|
+
"${Python3_INCLUDE_DIRS}"
|
|
26
|
+
"${CMAKE_CURRENT_SOURCE_DIR}"
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (WIN32)
|
|
30
|
+
target_link_libraries(pythonfmu-export PRIVATE ${Python3_LIBRARIES})
|
|
31
|
+
elseif (APPLE)
|
|
32
|
+
set_target_properties(pythonfmu-export PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
|
|
33
|
+
endif ()
|
|
34
|
+
|
|
35
|
+
if (WIN32)
|
|
36
|
+
set_target_properties(pythonfmu-export
|
|
37
|
+
PROPERTIES
|
|
38
|
+
RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_SOURCE_DIR}/../resources/binaries/${TARGET_PLATFORM}"
|
|
39
|
+
)
|
|
40
|
+
else ()
|
|
41
|
+
set_target_properties(pythonfmu-export
|
|
42
|
+
PROPERTIES
|
|
43
|
+
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/../resources/binaries/${TARGET_PLATFORM}"
|
|
44
|
+
)
|
|
45
|
+
endif ()
|