PySimultan 0.3.3__tar.gz → 0.4.0__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. pysimultan-0.4.0/.gitignore +27 -0
  2. pysimultan-0.4.0/LICENSE.txt +9 -0
  3. pysimultan-0.4.0/PKG-INFO +50 -0
  4. pysimultan-0.4.0/README.md +21 -0
  5. pysimultan-0.4.0/pyproject.toml +72 -0
  6. pysimultan-0.4.0/src/PySimultan2/__about__.py +1 -0
  7. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/default_types.py +2 -2
  8. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/object_mapper.py +9 -1
  9. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/utils.py +7 -0
  10. pysimultan-0.3.3/LICENSE.txt +0 -17
  11. pysimultan-0.3.3/MANIFEST.in +0 -9
  12. pysimultan-0.3.3/PKG-INFO +0 -44
  13. pysimultan-0.3.3/README.md +0 -5
  14. pysimultan-0.3.3/pyproject.toml +0 -61
  15. pysimultan-0.3.3/requirements.txt +0 -14
  16. pysimultan-0.3.3/setup.cfg +0 -9
  17. pysimultan-0.3.3/setup.py +0 -55
  18. pysimultan-0.3.3/src/PySimultan.egg-info/PKG-INFO +0 -44
  19. pysimultan-0.3.3/src/PySimultan.egg-info/SOURCES.txt +0 -109
  20. pysimultan-0.3.3/src/PySimultan.egg-info/dependency_links.txt +0 -1
  21. pysimultan-0.3.3/src/PySimultan.egg-info/not-zip-safe +0 -1
  22. pysimultan-0.3.3/src/PySimultan.egg-info/requires.txt +0 -8
  23. pysimultan-0.3.3/src/PySimultan.egg-info/top_level.txt +0 -2
  24. pysimultan-0.3.3/tests/test_calc_static_zone_temperature.py +0 -0
  25. pysimultan-0.3.3/tests/test_calculate_steady_state_temperature.py +0 -535
  26. pysimultan-0.3.3/tests/test_circular_references.py +0 -162
  27. pysimultan-0.3.3/tests/test_create_geometry.py +0 -166
  28. pysimultan-0.3.3/tests/test_files.py +0 -109
  29. pysimultan-0.3.3/tests/test_files_load.py +0 -97
  30. pysimultan-0.3.3/tests/test_load_geometry.py +0 -148
  31. pysimultan-0.3.3/tests/test_load_multi_values.py +0 -17
  32. pysimultan-0.3.3/tests/test_new_dll.py +0 -24
  33. pysimultan-0.3.3/tests/test_new_project_creation.py +0 -25
  34. pysimultan-0.3.3/tests/test_numeric_map.py +0 -122
  35. pysimultan-0.3.3/tests/test_pythonnet.py +0 -2
  36. pysimultan-0.3.3/tests/test_register_class.py +0 -149
  37. pysimultan-0.3.3/tests/test_set_attr_property.py +0 -76
  38. pysimultan-0.3.3/tests/test_set_dictionary.py +0 -88
  39. pysimultan-0.3.3/tests/test_set_properties.py +0 -159
  40. pysimultan-0.3.3/tests/test_taxonomie_maps.py +0 -33
  41. pysimultan-0.3.3/tests/test_taxonomies.py +0 -15
  42. pysimultan-0.3.3/tests/test_ui.py +0 -517
  43. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/__init__.py +0 -0
  44. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/config.py +0 -0
  45. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/data_model.py +0 -0
  46. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/files.py +0 -0
  47. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/geometry/__init__.py +0 -0
  48. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/geometry/geometry_base.py +0 -0
  49. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/geometry/utils.py +0 -0
  50. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/multi_values.py +0 -0
  51. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/AssimpNet.dll +0 -0
  52. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/AvalonDock.dll +0 -0
  53. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/BruTile.dll +0 -0
  54. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/ClosedXML.dll +0 -0
  55. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/ComponentBuilder.dll +0 -0
  56. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/ComponentBuilder.dll.config +0 -0
  57. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/ComponentBuilder.runtimeconfig.json +0 -0
  58. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/ComponentBuilder.xml +0 -0
  59. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/ControlzEx.dll +0 -0
  60. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Cyotek.Drawing.BitmapFont.dll +0 -0
  61. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/DocumentFormat.OpenXml.dll +0 -0
  62. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/DotSpatial.Projections.dll +0 -0
  63. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/ExcelNumberFormat.dll +0 -0
  64. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Fluent.dll +0 -0
  65. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/GeometryViewer.dll +0 -0
  66. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/GeometryViewer.dll.config +0 -0
  67. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/GeometryViewer.xml +0 -0
  68. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/HelixToolkit.Core.Wpf.dll +0 -0
  69. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/HelixToolkit.SharpDX.Core.Wpf.dll +0 -0
  70. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/HelixToolkit.SharpDX.Core.dll +0 -0
  71. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/HelixToolkit.dll +0 -0
  72. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/MathNet.Numerics.dll +0 -0
  73. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Microsoft.AspNetCore.Authorization.dll +0 -0
  74. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Microsoft.AspNetCore.Metadata.dll +0 -0
  75. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
  76. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
  77. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Microsoft.Extensions.Options.dll +0 -0
  78. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Microsoft.Extensions.Primitives.dll +0 -0
  79. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Microsoft.WindowsAPICodePack.Shell.dll +0 -0
  80. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Microsoft.WindowsAPICodePack.dll +0 -0
  81. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Microsoft.Xaml.Behaviors.dll +0 -0
  82. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Newtonsoft.Json.Bson.dll +0 -0
  83. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Newtonsoft.Json.dll +0 -0
  84. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SIMULTAN.AutoUpdate.Client.dll +0 -0
  85. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SIMULTAN.AutoUpdate.Client.dll.config +0 -0
  86. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SIMULTAN.AutoUpdate.DataTransferLibrary.dll +0 -0
  87. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SIMULTAN.AutoUpdate.DataTransferLibrary.dll.config +0 -0
  88. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SIMULTAN.Lang.dll +0 -0
  89. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SIMULTAN.Lang.xml +0 -0
  90. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SIMULTAN.Plugins.dll +0 -0
  91. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SIMULTAN.Plugins.xml +0 -0
  92. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SIMULTAN.UI.dll +0 -0
  93. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SIMULTAN.UI.xml +0 -0
  94. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SIMULTAN.dll +0 -0
  95. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SIMULTAN.xml +0 -0
  96. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SharpDX.D3DCompiler.dll +0 -0
  97. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SharpDX.DXGI.dll +0 -0
  98. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SharpDX.Direct2D1.dll +0 -0
  99. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SharpDX.Direct3D11.dll +0 -0
  100. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SharpDX.Direct3D9.dll +0 -0
  101. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SharpDX.Mathematics.dll +0 -0
  102. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SharpDX.dll +0 -0
  103. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SitePlanner.dll +0 -0
  104. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SitePlanner.dll.config +0 -0
  105. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/SitePlanner.xml +0 -0
  106. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Sprache.Calc.dll +0 -0
  107. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/Sprache.dll +0 -0
  108. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/System.Data.OleDb.dll +0 -0
  109. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/System.Net.Http.Formatting.dll +0 -0
  110. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/XAMLMarkupExtensions.dll +0 -0
  111. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/__init__.py +0 -0
  112. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/assimp.dll +0 -0
  113. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/defaultsettings.xml +0 -0
  114. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/resources/setup.bat +0 -0
  115. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/simultan_object.py +0 -0
  116. {pysimultan-0.3.3 → pysimultan-0.4.0}/src/PySimultan2/taxonomy_maps.py +0 -0
@@ -0,0 +1,27 @@
1
+ *.egg-info
2
+ .tox
3
+ .idea
4
+ __pycache__
5
+ .coverage
6
+ .coverage.*
7
+ htmlcov
8
+ *.pyc
9
+ docs/_build
10
+ venv
11
+ dist
12
+ .pytest_cache
13
+ .mypy_cache
14
+ build
15
+ *.codxf
16
+ *.grdxf
17
+ ~*.simultan
18
+ *.simultanbackup
19
+ simultan_exception*
20
+ /tests/resources/~*
21
+ /tests/resources/*.codxf
22
+ /tests/readme_examples/resources/~*
23
+ /tests/readme_examples/resources/*.codxf
24
+
25
+ *.AppImage
26
+
27
+ storage-user*
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-present Bühler Maximilian <maximilian.buehler@a1.digital>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.3
2
+ Name: PySimultan
3
+ Version: 0.4.0
4
+ Project-URL: Documentation, https://github.com/Bühler Maximilian/PySimultan2#readme
5
+ Project-URL: Issues, https://github.com/Bühler Maximilian/PySimultan2/issues
6
+ Project-URL: Source, https://github.com/Bühler Maximilian/PySimultan2
7
+ Author-email: Bühler Maximilian <maximilian.buehler@tuwien.ac.at>
8
+ License-Expression: MIT
9
+ License-File: LICENSE.txt
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Programming Language :: Python
12
+ Classifier: Programming Language :: Python :: 3.8
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: Implementation :: CPython
18
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
19
+ Requires-Python: >=3.8
20
+ Requires-Dist: colorlog
21
+ Requires-Dist: numpy
22
+ Requires-Dist: pandas
23
+ Requires-Dist: pyarrow
24
+ Requires-Dist: pythonnet
25
+ Requires-Dist: ruamel-yaml
26
+ Requires-Dist: six
27
+ Requires-Dist: tqdm
28
+ Description-Content-Type: text/markdown
29
+
30
+ # pysimultan_api
31
+
32
+ [![PyPI - Version](https://img.shields.io/pypi/v/pysimultan-api.svg)](https://pypi.org/project/pysimultan-api)
33
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pysimultan-api.svg)](https://pypi.org/project/pysimultan-api)
34
+
35
+ -----
36
+
37
+ ## Table of Contents
38
+
39
+ - [Installation](#installation)
40
+ - [License](#license)
41
+
42
+ ## Installation
43
+
44
+ ```console
45
+ pip install pysimultan-api
46
+ ```
47
+
48
+ ## License
49
+
50
+ `pysimultan-api` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
@@ -0,0 +1,21 @@
1
+ # pysimultan_api
2
+
3
+ [![PyPI - Version](https://img.shields.io/pypi/v/pysimultan-api.svg)](https://pypi.org/project/pysimultan-api)
4
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pysimultan-api.svg)](https://pypi.org/project/pysimultan-api)
5
+
6
+ -----
7
+
8
+ ## Table of Contents
9
+
10
+ - [Installation](#installation)
11
+ - [License](#license)
12
+
13
+ ## Installation
14
+
15
+ ```console
16
+ pip install pysimultan-api
17
+ ```
18
+
19
+ ## License
20
+
21
+ `pysimultan-api` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
@@ -0,0 +1,72 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "PySimultan"
7
+ dynamic = ["version"]
8
+ description = ''
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ license = "MIT"
12
+ keywords = []
13
+ authors = [
14
+ { name = "Bühler Maximilian", email = "maximilian.buehler@tuwien.ac.at" },
15
+ ]
16
+ classifiers = [
17
+ "Development Status :: 4 - Beta",
18
+ "Programming Language :: Python",
19
+ "Programming Language :: Python :: 3.8",
20
+ "Programming Language :: Python :: 3.9",
21
+ "Programming Language :: Python :: 3.10",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Programming Language :: Python :: Implementation :: CPython",
25
+ "Programming Language :: Python :: Implementation :: PyPy",
26
+ ]
27
+ dependencies = ['six',
28
+ 'numpy',
29
+ 'pythonnet',
30
+ 'colorlog',
31
+ 'ruamel.yaml',
32
+ 'tqdm',
33
+ 'pandas',
34
+ 'pyarrow',]
35
+
36
+ [project.urls]
37
+ Documentation = "https://github.com/Bühler Maximilian/PySimultan2#readme"
38
+ Issues = "https://github.com/Bühler Maximilian/PySimultan2/issues"
39
+ Source = "https://github.com/Bühler Maximilian/PySimultan2"
40
+
41
+ [tool.hatch.version]
42
+ path = "src/PySimultan2/__about__.py"
43
+
44
+ [tool.hatch.envs.types]
45
+ extra-dependencies = [
46
+ "mypy>=1.0.0",
47
+ ]
48
+ [tool.hatch.envs.types.scripts]
49
+ check = "mypy --install-types --non-interactive {args:src/PySimultan2 tests}"
50
+
51
+ [tool.hatch.build.targets.wheel]
52
+ packages = ["src/PySimultan2"]
53
+
54
+
55
+ [tool.coverage.run]
56
+ source_pkgs = ["PySimultan2", "tests"]
57
+ branch = true
58
+ parallel = true
59
+ omit = [
60
+ "src/PySimultan2/__about__.py",
61
+ ]
62
+
63
+ [tool.coverage.paths]
64
+ PySimultan2 = ["src/PySimultan2", "*/PySimultan2/src/PySimultan2"]
65
+ tests = ["tests", "*/PySimultan2/tests"]
66
+
67
+ [tool.coverage.report]
68
+ exclude_lines = [
69
+ "no cov",
70
+ "if __name__ == .__main__.:",
71
+ "if TYPE_CHECKING:",
72
+ ]
@@ -0,0 +1 @@
1
+ version = '0.4.0'
@@ -375,10 +375,10 @@ class ComponentDictionary(SimultanObject):
375
375
  '_dict').keys():
376
376
  return object.__getattribute__(self, '_dict')[key]
377
377
  else:
378
- data_model = config.default_data_model
378
+ # data_model = config.default_data_model
379
379
  obj = get_component_taxonomy_entry(self._wrapped_obj, key)
380
380
  if obj is not None:
381
- val = get_obj_value(obj, data_model=data_model, object_mapper=self._object_mapper)
381
+ val = get_obj_value(obj, data_model=self._data_model, object_mapper=self._object_mapper)
382
382
  self._dict[key] = val
383
383
  return self._dict[key]
384
384
 
@@ -99,7 +99,6 @@ class PythonMapper(object):
99
99
  new_component_list = set()
100
100
 
101
101
  def get_subcomponents(sim_component: Union[SimComponent, SimultanObject]):
102
- print(sim_component.Id)
103
102
  new_subcomponents = set()
104
103
  if isinstance(sim_component, SimultanObject):
105
104
  sim_component = sim_component._wrapped_obj
@@ -109,9 +108,16 @@ class PythonMapper(object):
109
108
  else:
110
109
  new_component_list.add(sim_component)
111
110
 
111
+ if sim_component is None:
112
+ return []
113
+
112
114
  for sub_component in sim_component.Components.Items:
115
+ if sub_component is None:
116
+ continue
113
117
  new_subcomponents.add(sub_component.Component)
114
118
  for ref_component in sim_component.ReferencedComponents.Items:
119
+ if ref_component is None:
120
+ continue
115
121
  new_subcomponents.add(ref_component.Target)
116
122
 
117
123
  for new_subcomponent in new_subcomponents:
@@ -120,6 +126,8 @@ class PythonMapper(object):
120
126
  new_component_list.update(new_subcomponents)
121
127
 
122
128
  for component in component_list:
129
+ if component is None:
130
+ continue
123
131
  get_subcomponents(component)
124
132
  component_list = list(new_component_list)
125
133
 
@@ -69,6 +69,8 @@ def create_python_object(wrapped_obj: SimComponent, cls: Type[SimultanObject], *
69
69
  :return:
70
70
  """
71
71
 
72
+ from .default_types import ComponentList, ComponentDictionary
73
+
72
74
  if kwargs.get('data_model_id', None) is None:
73
75
  from .data_model import data_models
74
76
  kwargs['data_model_id'] = list(data_models)[0].id
@@ -106,6 +108,11 @@ def create_python_object(wrapped_obj: SimComponent, cls: Type[SimultanObject], *
106
108
  obj._object_mapper = kwargs.get('object_mapper', None)
107
109
  obj.component_policy = kwargs.get('component_policy', 'subcomponent')
108
110
 
111
+ if isinstance(obj, ComponentList):
112
+ obj.index = kwargs.get('index', 0)
113
+ if isinstance(obj, ComponentDictionary):
114
+ obj._dict = {}
115
+
109
116
  if "_cls_instances" not in cls.__dict__:
110
117
  cls._cls_instances = WeakSet()
111
118
  try:
@@ -1,17 +0,0 @@
1
- Permission is hereby granted, free of charge, to any person obtaining a copy
2
- of this software and associated documentation files (the "Software"), to
3
- deal in the Software without restriction, including without limitation the
4
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
5
- sell copies of the Software, and to permit persons to whom the Software is
6
- furnished to do so, subject to the following conditions:
7
-
8
- The above copyright notice and this permission notice shall be included in
9
- all copies or substantial portions of the Software.
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
16
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
17
- IN THE SOFTWARE.
@@ -1,9 +0,0 @@
1
- include README.rst
2
- include LICENSE.txt
3
- include requirements.txt
4
-
5
- graft src/py_plot_tools/resources
6
- graft src/py_plot_tools/basic_geometries/gui_adaptions/infos/generated
7
- graft src/py_plot_tools/generated
8
- recursive-exclude src/tests *
9
- recursive-include src/resources *
pysimultan-0.3.3/PKG-INFO DELETED
@@ -1,44 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: PySimultan
3
- Version: 0.3.3
4
- Home-page:
5
- Author: Max Buehler
6
- Author-email: Max Bühler <maximilian.buehler@tuwien.ac.at>
7
- License: Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to
9
- deal in the Software without restriction, including without limitation the
10
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
11
- sell copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in
15
- all copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
- IN THE SOFTWARE.
24
-
25
- Classifier: Programming Language :: Python :: 3
26
- Classifier: License :: OSI Approved :: MIT License
27
- Classifier: Operating System :: OS Independent
28
- Requires-Python: >=3.10
29
- Description-Content-Type: text/markdown
30
- License-File: LICENSE.txt
31
- Requires-Dist: six
32
- Requires-Dist: numpy
33
- Requires-Dist: pythonnet
34
- Requires-Dist: colorlog
35
- Requires-Dist: ruamel.yaml
36
- Requires-Dist: tqdm
37
- Requires-Dist: pandas
38
- Requires-Dist: pyarrow
39
-
40
- ===================================================
41
- geometry_utils: Several tools to work with geometry
42
- ===================================================
43
-
44
- Python library with several tools to work with geometry
@@ -1,5 +0,0 @@
1
- ===================================================
2
- geometry_utils: Several tools to work with geometry
3
- ===================================================
4
-
5
- Python library with several tools to work with geometry
@@ -1,61 +0,0 @@
1
- [project]
2
- name = "PySimultan"
3
- version = "0.3.3"
4
- authors = [
5
- {name = "Max Bühler", email = "maximilian.buehler@tuwien.ac.at"}
6
- ]
7
- readme = "README.md"
8
- requires-python = ">=3.8"
9
- classifiers = [
10
- "Programming Language :: Python :: 3",
11
- "License :: OSI Approved :: MIT License",
12
- "Operating System :: OS Independent"
13
- ]
14
- license = {file = "LICENSE.txt"}
15
- dynamic = ["dependencies"]
16
- [tool.setuptools.dynamic]
17
- dependencies = {file = ["requirements.txt"]}
18
-
19
- [build-system]
20
- requires = ["setuptools", "wheel"]
21
- build-backend = "setuptools.build_meta"
22
-
23
- [tool.setuptools.packages.find]
24
- where = ["src"]
25
-
26
- [tool.black]
27
- # Use the more relaxed max line length permitted in PEP8.
28
- line-length = 99
29
- target-version = ["py38", "py39", "py310", "py311", "py312"]
30
- exclude = '''
31
- /(
32
- \.eggs
33
- | \.git
34
- | \.mypy_cache
35
- | \.tox
36
- | \venv
37
- | build
38
- | dist
39
- | htmlcov
40
- )/
41
- '''
42
-
43
- [tool.isort]
44
- profile = "black"
45
- line_length = 99
46
- force_sort_within_sections = true
47
- src_paths = ["docs", "src", "tests", "setup.py"]
48
-
49
- [tool.coverage.run]
50
- branch = true
51
-
52
- [tool.coverage.paths]
53
- # Files with these prefixes are treated as identical for the purposes of coverage combine.
54
- source = [
55
- # The first path is the name to which all paths get unified
56
- "src/",
57
- # tox on Linux
58
- ".tox/py*/lib/python*/site-packages/",
59
- # tox on Windows
60
- ".tox/py*/Lib/site-packages/",
61
- ]
@@ -1,14 +0,0 @@
1
- #
2
- # This file is autogenerated by pip-compile
3
- # To update, run:
4
- #
5
- # pip-compile requirements.in
6
- #
7
- six
8
- numpy
9
- pythonnet
10
- colorlog
11
- ruamel.yaml
12
- tqdm
13
- pandas
14
- pyarrow
@@ -1,9 +0,0 @@
1
- [mypy]
2
- warn_unused_configs = True
3
- ignore_missing_imports = True
4
- no_implicit_optional = True
5
-
6
- [egg_info]
7
- tag_build =
8
- tag_date = 0
9
-
pysimultan-0.3.3/setup.py DELETED
@@ -1,55 +0,0 @@
1
- #!/usr/bin/env python3
2
-
3
- from pathlib import Path
4
-
5
- import setuptools
6
-
7
- project_dir = Path(__file__).parent
8
-
9
- with project_dir.joinpath("requirements.txt").open() as f:
10
- install_requires = f.read().strip().split("\n")
11
-
12
- setuptools.setup(
13
- name="PySimultan",
14
- version="0.3.3",
15
- description="Integrate SIMULTAN into Python",
16
- # Allow UTF-8 characters in README with encoding argument.
17
- long_description=project_dir.joinpath("README.md").read_text(encoding="utf-8"),
18
- keywords=["python"],
19
- author="Max Buehler",
20
- url="",
21
- packages=setuptools.find_packages("src"),
22
- package_dir={"": "src"},
23
- package_data={
24
- # This assumes your package is named "your_package_name"
25
- "PySimultan2": ["resources/*", "tests/*"]
26
- },
27
- # pip 9.0+ will inspect this field when installing to help users install a
28
- # compatible version of the library for their Python version.
29
- python_requires=">=3.10",
30
- setup_requires=["wheel"],
31
- # There are some peculiarities on how to include package data for source
32
- # distributions using setuptools. You also need to add entries for package
33
- # data to MANIFEST.in.
34
- # See https://stackoverflow.com/questions/7522250/
35
- include_package_data=True,
36
- # This is a trick to avoid duplicating dependencies between both setup.py and
37
- # requirements.txt.
38
- # requirements.txt must be included in MANIFEST.in for this to work.
39
- # It does not work for all types of dependencies (e.g. VCS dependencies).
40
- # For VCS dependencies, use pip >= 19 and the PEP 508 syntax.
41
- # Example: 'requests @ git+https://github.com/requests/requests.git@branch_or_tag'
42
- # See: https://github.com/pypa/pip/issues/6162
43
- install_requires=install_requires,
44
- zip_safe=False,
45
- license="MIT",
46
- license_files=["LICENSE.txt"],
47
- classifiers=[
48
- "Development Status :: 4 - Beta",
49
- "Intended Audience :: Developers",
50
- "License :: OSI Approved :: MIT License",
51
- "Programming Language :: Python",
52
- "Programming Language :: Python :: 3",
53
- "Programming Language :: Python :: 3 :: Only",
54
- ],
55
- )
@@ -1,44 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: PySimultan
3
- Version: 0.3.3
4
- Home-page:
5
- Author: Max Buehler
6
- Author-email: Max Bühler <maximilian.buehler@tuwien.ac.at>
7
- License: Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to
9
- deal in the Software without restriction, including without limitation the
10
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
11
- sell copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in
15
- all copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
- IN THE SOFTWARE.
24
-
25
- Classifier: Programming Language :: Python :: 3
26
- Classifier: License :: OSI Approved :: MIT License
27
- Classifier: Operating System :: OS Independent
28
- Requires-Python: >=3.10
29
- Description-Content-Type: text/markdown
30
- License-File: LICENSE.txt
31
- Requires-Dist: six
32
- Requires-Dist: numpy
33
- Requires-Dist: pythonnet
34
- Requires-Dist: colorlog
35
- Requires-Dist: ruamel.yaml
36
- Requires-Dist: tqdm
37
- Requires-Dist: pandas
38
- Requires-Dist: pyarrow
39
-
40
- ===================================================
41
- geometry_utils: Several tools to work with geometry
42
- ===================================================
43
-
44
- Python library with several tools to work with geometry
@@ -1,109 +0,0 @@
1
- LICENSE.txt
2
- MANIFEST.in
3
- README.md
4
- pyproject.toml
5
- requirements.txt
6
- setup.cfg
7
- setup.py
8
- src/PySimultan.egg-info/PKG-INFO
9
- src/PySimultan.egg-info/SOURCES.txt
10
- src/PySimultan.egg-info/dependency_links.txt
11
- src/PySimultan.egg-info/not-zip-safe
12
- src/PySimultan.egg-info/requires.txt
13
- src/PySimultan.egg-info/top_level.txt
14
- src/PySimultan2/__init__.py
15
- src/PySimultan2/config.py
16
- src/PySimultan2/data_model.py
17
- src/PySimultan2/default_types.py
18
- src/PySimultan2/files.py
19
- src/PySimultan2/multi_values.py
20
- src/PySimultan2/object_mapper.py
21
- src/PySimultan2/simultan_object.py
22
- src/PySimultan2/taxonomy_maps.py
23
- src/PySimultan2/utils.py
24
- src/PySimultan2/geometry/__init__.py
25
- src/PySimultan2/geometry/geometry_base.py
26
- src/PySimultan2/geometry/utils.py
27
- src/PySimultan2/resources/AssimpNet.dll
28
- src/PySimultan2/resources/AvalonDock.dll
29
- src/PySimultan2/resources/BruTile.dll
30
- src/PySimultan2/resources/ClosedXML.dll
31
- src/PySimultan2/resources/ComponentBuilder.dll
32
- src/PySimultan2/resources/ComponentBuilder.dll.config
33
- src/PySimultan2/resources/ComponentBuilder.runtimeconfig.json
34
- src/PySimultan2/resources/ComponentBuilder.xml
35
- src/PySimultan2/resources/ControlzEx.dll
36
- src/PySimultan2/resources/Cyotek.Drawing.BitmapFont.dll
37
- src/PySimultan2/resources/DocumentFormat.OpenXml.dll
38
- src/PySimultan2/resources/DotSpatial.Projections.dll
39
- src/PySimultan2/resources/ExcelNumberFormat.dll
40
- src/PySimultan2/resources/Fluent.dll
41
- src/PySimultan2/resources/GeometryViewer.dll
42
- src/PySimultan2/resources/GeometryViewer.dll.config
43
- src/PySimultan2/resources/GeometryViewer.xml
44
- src/PySimultan2/resources/HelixToolkit.Core.Wpf.dll
45
- src/PySimultan2/resources/HelixToolkit.SharpDX.Core.Wpf.dll
46
- src/PySimultan2/resources/HelixToolkit.SharpDX.Core.dll
47
- src/PySimultan2/resources/HelixToolkit.dll
48
- src/PySimultan2/resources/MathNet.Numerics.dll
49
- src/PySimultan2/resources/Microsoft.AspNetCore.Authorization.dll
50
- src/PySimultan2/resources/Microsoft.AspNetCore.Metadata.dll
51
- src/PySimultan2/resources/Microsoft.Extensions.DependencyInjection.Abstractions.dll
52
- src/PySimultan2/resources/Microsoft.Extensions.Logging.Abstractions.dll
53
- src/PySimultan2/resources/Microsoft.Extensions.Options.dll
54
- src/PySimultan2/resources/Microsoft.Extensions.Primitives.dll
55
- src/PySimultan2/resources/Microsoft.WindowsAPICodePack.Shell.dll
56
- src/PySimultan2/resources/Microsoft.WindowsAPICodePack.dll
57
- src/PySimultan2/resources/Microsoft.Xaml.Behaviors.dll
58
- src/PySimultan2/resources/Newtonsoft.Json.Bson.dll
59
- src/PySimultan2/resources/Newtonsoft.Json.dll
60
- src/PySimultan2/resources/SIMULTAN.AutoUpdate.Client.dll
61
- src/PySimultan2/resources/SIMULTAN.AutoUpdate.Client.dll.config
62
- src/PySimultan2/resources/SIMULTAN.AutoUpdate.DataTransferLibrary.dll
63
- src/PySimultan2/resources/SIMULTAN.AutoUpdate.DataTransferLibrary.dll.config
64
- src/PySimultan2/resources/SIMULTAN.Lang.dll
65
- src/PySimultan2/resources/SIMULTAN.Lang.xml
66
- src/PySimultan2/resources/SIMULTAN.Plugins.dll
67
- src/PySimultan2/resources/SIMULTAN.Plugins.xml
68
- src/PySimultan2/resources/SIMULTAN.UI.dll
69
- src/PySimultan2/resources/SIMULTAN.UI.xml
70
- src/PySimultan2/resources/SIMULTAN.dll
71
- src/PySimultan2/resources/SIMULTAN.xml
72
- src/PySimultan2/resources/SharpDX.D3DCompiler.dll
73
- src/PySimultan2/resources/SharpDX.DXGI.dll
74
- src/PySimultan2/resources/SharpDX.Direct2D1.dll
75
- src/PySimultan2/resources/SharpDX.Direct3D11.dll
76
- src/PySimultan2/resources/SharpDX.Direct3D9.dll
77
- src/PySimultan2/resources/SharpDX.Mathematics.dll
78
- src/PySimultan2/resources/SharpDX.dll
79
- src/PySimultan2/resources/SitePlanner.dll
80
- src/PySimultan2/resources/SitePlanner.dll.config
81
- src/PySimultan2/resources/SitePlanner.xml
82
- src/PySimultan2/resources/Sprache.Calc.dll
83
- src/PySimultan2/resources/Sprache.dll
84
- src/PySimultan2/resources/System.Data.OleDb.dll
85
- src/PySimultan2/resources/System.Net.Http.Formatting.dll
86
- src/PySimultan2/resources/XAMLMarkupExtensions.dll
87
- src/PySimultan2/resources/__init__.py
88
- src/PySimultan2/resources/assimp.dll
89
- src/PySimultan2/resources/defaultsettings.xml
90
- src/PySimultan2/resources/setup.bat
91
- tests/test_calc_static_zone_temperature.py
92
- tests/test_calculate_steady_state_temperature.py
93
- tests/test_circular_references.py
94
- tests/test_create_geometry.py
95
- tests/test_files.py
96
- tests/test_files_load.py
97
- tests/test_load_geometry.py
98
- tests/test_load_multi_values.py
99
- tests/test_new_dll.py
100
- tests/test_new_project_creation.py
101
- tests/test_numeric_map.py
102
- tests/test_pythonnet.py
103
- tests/test_register_class.py
104
- tests/test_set_attr_property.py
105
- tests/test_set_dictionary.py
106
- tests/test_set_properties.py
107
- tests/test_taxonomie_maps.py
108
- tests/test_taxonomies.py
109
- tests/test_ui.py
@@ -1,8 +0,0 @@
1
- six
2
- numpy
3
- pythonnet
4
- colorlog
5
- ruamel.yaml
6
- tqdm
7
- pandas
8
- pyarrow
@@ -1,2 +0,0 @@
1
- PySimultan2
2
- SOF