PySimultan 0.7.1__tar.gz → 0.7.2__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.7.1 → pysimultan-0.7.2}/PKG-INFO +1 -1
- pysimultan-0.7.2/src/PySimultan2/__about__.py +1 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/data_model.py +21 -6
- pysimultan-0.7.1/src/PySimultan2/__about__.py +0 -1
- {pysimultan-0.7.1 → pysimultan-0.7.2}/.gitignore +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/LICENSE.txt +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/README.md +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/pyproject.toml +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/CHANGELOG.md +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/__init__.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/default_types.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/files.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/geometry/__init__.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/geometry/geometry_base.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/geometry/utils.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/multi_values.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/object_mapper.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/ClosedXML.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/ControlzEx.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/DocumentFormat.OpenXml.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/DotSpatial.Projections.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/ExcelNumberFormat.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Fluent.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/MathNet.Numerics.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Microsoft.AspNetCore.Authorization.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Microsoft.AspNetCore.Metadata.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Microsoft.Extensions.Options.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Microsoft.Extensions.Primitives.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Microsoft.WindowsAPICodePack.Shell.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Microsoft.WindowsAPICodePack.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Microsoft.Xaml.Behaviors.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Newtonsoft.Json.Bson.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Newtonsoft.Json.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/SIMULTAN.Lang.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/SIMULTAN.Lang.xml +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/SIMULTAN.Plugins.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/SIMULTAN.Plugins.xml +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/SIMULTAN.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/SIMULTAN.xml +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/SharpDX.Mathematics.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Sprache.Calc.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Sprache.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/System.Data.OleDb.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/System.Net.Http.Formatting.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/System.Reflection.MetadataLoadContext.dll +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/__init__.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/simultan_object.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/taxonomy_maps.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/type_setter_lookup.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/utils.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/RoomAcoustics_V02.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/__init__.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/readme_examples/__init__.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/readme_examples/create_component.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/readme_examples/create_component_with_taxonomy_slot.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/readme_examples/create_referenced_component.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/readme_examples/create_taxonomies.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/readme_examples/resources/__init__.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/readme_examples/resources/empty_test_excel.xlsx +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/readme_examples/resources/template_example3.yml +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/readme_examples/resources/template_example4.yml +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/readme_examples/resources/template_example_create_typed_component.yml +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/readme_examples/resources/template_example_create_typed_component_with_slots.yml +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/readme_examples/resources/template_example_extend.yml +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/readme_examples/resources/template_example_update_references.yml +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/readme_examples/resources/template_reference_list.yml +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/resources/__init__.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/resources/new_test_file.txt +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/resources/new_test_file2.txt +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_calc_static_zone_temperature.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_calculate_steady_state_temperature.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_circular_references.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_create_geometry.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_default_component.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_directory_and_files.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_files.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_files_load.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_load_geometry.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_load_multi_values.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_new_dll.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_new_project_creation.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_numeric_map.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_numpy.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_parameter_reference.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_pythonnet.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_register_class.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_register_decorator.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_set_attr_property.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_set_dictionary.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_set_properties.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_taxonomie_maps.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_taxonomies.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/test_ui.py +0 -0
- {pysimultan-0.7.1 → pysimultan-0.7.2}/tests/ui_minimal_example.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: PySimultan
|
3
|
-
Version: 0.7.
|
3
|
+
Version: 0.7.2
|
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.7.2'
|
@@ -474,7 +474,7 @@ class DataModel:
|
|
474
474
|
:param return_resource: return the resource
|
475
475
|
:return: GeometryViewer.Model.GeometryModel, geo_resource
|
476
476
|
"""
|
477
|
-
self.
|
477
|
+
self.get_file_infos_cached.cache_clear()
|
478
478
|
geo_resource = self.add_geometry_resource(file_name)
|
479
479
|
file_info = SystemFileInfo(geo_resource.CurrentFullPath)
|
480
480
|
try:
|
@@ -505,7 +505,7 @@ class DataModel:
|
|
505
505
|
model_name,
|
506
506
|
self.service_provider)
|
507
507
|
|
508
|
-
self.
|
508
|
+
self.get_file_infos_cached.cache_clear()
|
509
509
|
return new_resource
|
510
510
|
|
511
511
|
def add_empty_resource(self,
|
@@ -519,7 +519,7 @@ class DataModel:
|
|
519
519
|
"""
|
520
520
|
# return self.project.AddResourceFile(FileInfo(str(filename)))
|
521
521
|
|
522
|
-
self.
|
522
|
+
self.get_file_infos_cached.cache_clear()
|
523
523
|
if target_dir is None:
|
524
524
|
return self.project.AddEmptyResource(SystemFileInfo(str(filename)))
|
525
525
|
else:
|
@@ -701,7 +701,7 @@ class DataModel:
|
|
701
701
|
logger.info(f'Deleted resource {resource.Name} from project {self.project_path}')
|
702
702
|
else:
|
703
703
|
logger.error(f'Could not delete resource {resource.Name} from project {self.project_path}')
|
704
|
-
self.
|
704
|
+
self.get_file_infos_cached.cache_clear()
|
705
705
|
return success
|
706
706
|
|
707
707
|
def get_existing_resource_directory_entry(self,
|
@@ -974,7 +974,6 @@ class DataModel:
|
|
974
974
|
self.component_dict = {x.Id: x for x in component_list}
|
975
975
|
return self.component_dict
|
976
976
|
|
977
|
-
@lru_cache()
|
978
977
|
def get_component_by_id(self,
|
979
978
|
item_id: SimId,
|
980
979
|
search_subcomponents=False) -> Union[SimComponent, None]:
|
@@ -1004,6 +1003,7 @@ class DataModel:
|
|
1004
1003
|
if component is None and search_subcomponents:
|
1005
1004
|
component = self.component_dict.get(item_id, None)
|
1006
1005
|
if component is None:
|
1006
|
+
self.create_component_dict.cache_clear()
|
1007
1007
|
self.create_component_dict()
|
1008
1008
|
component = self.component_dict.get(item_id, None)
|
1009
1009
|
|
@@ -1012,8 +1012,23 @@ class DataModel:
|
|
1012
1012
|
def get_component_by_name(self, name: str) -> list[SimComponent]:
|
1013
1013
|
return [x for x in self.create_component_dict.values() if x.Name == name]
|
1014
1014
|
|
1015
|
-
@lru_cache()
|
1016
1015
|
def get_file_infos(self) -> list[PythonFileInfo]:
|
1016
|
+
"""
|
1017
|
+
Get all file infos from the project
|
1018
|
+
:return: list of PythonFileInfo objects
|
1019
|
+
"""
|
1020
|
+
file_infos = self.get_file_infos_cached()
|
1021
|
+
if file_infos.__len__() != self.assets.__len__():
|
1022
|
+
logger.warning(f'No file infos found in project {self.project_path}. '
|
1023
|
+
f'Please check if the project is loaded correctly.')
|
1024
|
+
# try to reload the file infos
|
1025
|
+
self.get_file_infos_cached.cache_clear()
|
1026
|
+
file_infos = self.get_file_infos_cached()
|
1027
|
+
|
1028
|
+
return self.get_file_infos_cached()
|
1029
|
+
|
1030
|
+
@lru_cache()
|
1031
|
+
def get_file_infos_cached(self) -> list[PythonFileInfo]:
|
1017
1032
|
file_infos = []
|
1018
1033
|
for asset in self.assets:
|
1019
1034
|
if isinstance(asset, ResourceFileEntry):
|
@@ -1 +0,0 @@
|
|
1
|
-
version = '0.7.1'
|
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
|
{pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Microsoft.AspNetCore.Metadata.dll
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Microsoft.Extensions.Options.dll
RENAMED
File without changes
|
{pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Microsoft.Extensions.Primitives.dll
RENAMED
File without changes
|
File without changes
|
{pysimultan-0.7.1 → pysimultan-0.7.2}/src/PySimultan2/resources/Microsoft.WindowsAPICodePack.dll
RENAMED
File without changes
|
{pysimultan-0.7.1 → pysimultan-0.7.2}/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.7.1 → pysimultan-0.7.2}/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.7.1 → pysimultan-0.7.2}/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.7.1 → pysimultan-0.7.2}/tests/readme_examples/resources/template_example_extend.yml
RENAMED
File without changes
|
File without changes
|
{pysimultan-0.7.1 → pysimultan-0.7.2}/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
|