PySimultan 0.6.4__tar.gz → 0.6.5__tar.gz
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.
- {pysimultan-0.6.4 → pysimultan-0.6.5}/.gitignore +1 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/PKG-INFO +1 -1
- pysimultan-0.6.5/src/PySimultan2/__about__.py +1 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/data_model.py +27 -6
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/object_mapper.py +3 -3
- pysimultan-0.6.4/src/PySimultan2/__about__.py +0 -1
- {pysimultan-0.6.4 → pysimultan-0.6.5}/LICENSE.txt +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/README.md +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/pyproject.toml +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/CHANGELOG.md +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/__init__.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/default_types.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/files.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/geometry/__init__.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/geometry/geometry_base.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/geometry/utils.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/multi_values.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/ClosedXML.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/ControlzEx.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/DocumentFormat.OpenXml.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/DotSpatial.Projections.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/ExcelNumberFormat.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Fluent.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/MathNet.Numerics.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Microsoft.AspNetCore.Authorization.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Microsoft.AspNetCore.Metadata.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Microsoft.Extensions.Options.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Microsoft.Extensions.Primitives.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Microsoft.WindowsAPICodePack.Shell.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Microsoft.WindowsAPICodePack.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Microsoft.Xaml.Behaviors.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Newtonsoft.Json.Bson.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Newtonsoft.Json.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/SIMULTAN.Lang.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/SIMULTAN.Lang.xml +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/SIMULTAN.Plugins.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/SIMULTAN.Plugins.xml +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/SIMULTAN.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/SIMULTAN.xml +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/SharpDX.Mathematics.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Sprache.Calc.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Sprache.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/System.Data.OleDb.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/System.Net.Http.Formatting.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/System.Reflection.MetadataLoadContext.dll +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/__init__.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/simultan_object.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/taxonomy_maps.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/type_setter_lookup.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/utils.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/RoomAcoustics_V02.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/__init__.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/__init__.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/create_component.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/create_component_with_taxonomy_slot.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/create_referenced_component.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/create_taxonomies.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/resources/__init__.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/resources/empty_test_excel.xlsx +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/resources/template_example3.yml +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/resources/template_example4.yml +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/resources/template_example_create_typed_component.yml +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/resources/template_example_create_typed_component_with_slots.yml +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/resources/template_example_extend.yml +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/resources/template_example_update_references.yml +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/resources/template_reference_list.yml +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/resources/__init__.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/resources/new_test_file.txt +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/resources/new_test_file2.txt +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_calc_static_zone_temperature.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_calculate_steady_state_temperature.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_circular_references.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_create_geometry.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_default_component.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_directory_and_files.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_files.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_files_load.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_load_geometry.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_load_multi_values.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_new_dll.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_new_project_creation.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_numeric_map.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_numpy.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_parameter_reference.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_pythonnet.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_register_class.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_register_decorator.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_set_attr_property.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_set_dictionary.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_set_properties.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_taxonomie_maps.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_taxonomies.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/test_ui.py +0 -0
- {pysimultan-0.6.4 → pysimultan-0.6.5}/tests/ui_minimal_example.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: PySimultan
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.5
|
4
4
|
Project-URL: Documentation, https://github.com/Bühler Maximilian/PySimultan2#readme
|
5
5
|
Project-URL: Issues, https://github.com/Bühler Maximilian/PySimultan2/issues
|
6
6
|
Project-URL: Source, https://github.com/Bühler Maximilian/PySimultan2
|
@@ -0,0 +1 @@
|
|
1
|
+
version = '0.6.5'
|
@@ -284,7 +284,7 @@ class DataModel:
|
|
284
284
|
self.data = self.project_data_manager.Components
|
285
285
|
|
286
286
|
self.create_component_dict.cache_clear()
|
287
|
-
self.
|
287
|
+
self.get_component_by_id_cached.cache_clear()
|
288
288
|
|
289
289
|
return self.data
|
290
290
|
|
@@ -357,7 +357,7 @@ class DataModel:
|
|
357
357
|
self.data.RemoveItem(index)
|
358
358
|
|
359
359
|
self.create_component_dict.cache_clear()
|
360
|
-
self.
|
360
|
+
self.get_component_by_id_cached.cache_clear()
|
361
361
|
|
362
362
|
def remove_component(self,
|
363
363
|
component: Union[SimComponent, SimultanObject] = None,
|
@@ -380,7 +380,7 @@ class DataModel:
|
|
380
380
|
self.data.RemoveItem(index)
|
381
381
|
|
382
382
|
self.create_component_dict.cache_clear()
|
383
|
-
self.
|
383
|
+
self.get_component_by_id_cached.cache_clear()
|
384
384
|
|
385
385
|
def save(self):
|
386
386
|
"""
|
@@ -464,7 +464,7 @@ class DataModel:
|
|
464
464
|
self.data.RemoveItem(index)
|
465
465
|
|
466
466
|
self.create_component_dict.cache_clear()
|
467
|
-
self.
|
467
|
+
self.get_component_by_id_cached.cache_clear()
|
468
468
|
|
469
469
|
def add_new_geometry_model(self, file_name: str, model_name: str = None, return_resource=False):
|
470
470
|
"""
|
@@ -601,9 +601,13 @@ class DataModel:
|
|
601
601
|
|
602
602
|
existing_files = [x.current_full_path for x in self.project_data_manager.AssetManager.Resources]
|
603
603
|
try:
|
604
|
-
|
604
|
+
if isinstance(filename, (PosixPath, WindowsPath)):
|
605
|
+
# convert to SystemFileInfo
|
606
|
+
act_filename = str(filename)
|
607
|
+
else:
|
608
|
+
act_filename = filename.replace('\\', os.sep)
|
605
609
|
except TypeError:
|
606
|
-
act_filename =
|
610
|
+
act_filename = filename
|
607
611
|
|
608
612
|
if not act_filename.startswith(self.project.ProjectUnpackFolder.FullPath) and target_dir is None:
|
609
613
|
target_dir_str = self.project.ProjectUnpackFolder.FullPath
|
@@ -978,6 +982,23 @@ class DataModel:
|
|
978
982
|
# print(item_id.GlobalId, item_id.LocalId)
|
979
983
|
# _ = [print((x.Id.GlobalId, x.Id.LocalId)) for x in self.data.Items]
|
980
984
|
|
985
|
+
component = self.get_component_by_id_cached(item_id=item_id,
|
986
|
+
search_subcomponents=search_subcomponents)
|
987
|
+
if component is None:
|
988
|
+
self.get_component_by_id_cached.cache_clear()
|
989
|
+
component = self.get_component_by_id_cached(item_id=item_id,
|
990
|
+
search_subcomponents=search_subcomponents)
|
991
|
+
|
992
|
+
return component
|
993
|
+
|
994
|
+
@lru_cache()
|
995
|
+
def get_component_by_id_cached(self,
|
996
|
+
item_id: SimId,
|
997
|
+
search_subcomponents=False) -> Union[SimComponent, None]:
|
998
|
+
|
999
|
+
# print(item_id.GlobalId, item_id.LocalId)
|
1000
|
+
# _ = [print((x.Id.GlobalId, x.Id.LocalId)) for x in self.data.Items]
|
1001
|
+
|
981
1002
|
component = next((x for x in self.data.Items if x.Id.Equals(item_id)), None)
|
982
1003
|
|
983
1004
|
if component is None and search_subcomponents:
|
@@ -104,9 +104,9 @@ class PythonMapper(object):
|
|
104
104
|
def register(self,
|
105
105
|
taxonomy: str,
|
106
106
|
cls: Type[Any],
|
107
|
-
|
108
|
-
|
109
|
-
|
107
|
+
taxonomy_map: TaxonomyMap,
|
108
|
+
re_register: bool = True,
|
109
|
+
update_in_other_mappers: bool = False):
|
110
110
|
|
111
111
|
# print(f'Registering {taxonomy} with {cls} {hash(cls)}')
|
112
112
|
|
@@ -1 +0,0 @@
|
|
1
|
-
version = '0.6.4'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Microsoft.AspNetCore.Metadata.dll
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Microsoft.Extensions.Options.dll
RENAMED
File without changes
|
{pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Microsoft.Extensions.Primitives.dll
RENAMED
File without changes
|
File without changes
|
{pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Microsoft.WindowsAPICodePack.dll
RENAMED
File without changes
|
{pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/Microsoft.Xaml.Behaviors.dll
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pysimultan-0.6.4 → pysimultan-0.6.5}/src/PySimultan2/resources/System.Net.Http.Formatting.dll
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/create_component_with_taxonomy_slot.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/resources/template_example_extend.yml
RENAMED
File without changes
|
File without changes
|
{pysimultan-0.6.4 → pysimultan-0.6.5}/tests/readme_examples/resources/template_reference_list.yml
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|