PySimultan 0.2.9__py3-none-any.whl → 0.3.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +1,17 @@
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
+ 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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PySimultan
3
- Version: 0.2.9
3
+ Version: 0.3.0
4
4
  Home-page:
5
5
  Author: Max Buehler
6
6
  Author-email: Max Bühler <maximilian.buehler@tuwien.ac.at>
@@ -1,13 +1,13 @@
1
1
  PySimultan2/__init__.py,sha256=X10eSCNtac3CG28w7Ogo1csNalhapO9V4oVSIucc0Kw,1121
2
2
  PySimultan2/config.py,sha256=Bazt2vDSEga_cFEIPWcAYBsj3TUN5jgtob8TtUvGm5E,1523
3
3
  PySimultan2/data_model.py,sha256=2Qq_JyUxtDgsIt3p5hIXIqNy7eAtvn-6Of_Wzb9AWoE,28004
4
- PySimultan2/default_types.py,sha256=1HJ6IZt3Lm3Hhq3A9dDmvIO46Fk9bGqDng6yTtYKmO4,22585
4
+ PySimultan2/default_types.py,sha256=yMcnk1ZxpbIyQAWjhcvxSD2Mejrlv19HRVvnmDUu6MI,22832
5
5
  PySimultan2/files.py,sha256=q6A5KTqU1nCwh0W0Qf3Se7qcvhGiDAWza2v-X-rt6E4,12473
6
6
  PySimultan2/multi_values.py,sha256=ZFXlTLuZo32x7_7diYAp2XEjp5uwgHLgNOzN7v74-5I,13650
7
7
  PySimultan2/object_mapper.py,sha256=Dsr05gdZxcECr14TVzswHNuE4HQhxyhjQwNWlgDrzwc,9010
8
8
  PySimultan2/simultan_object.py,sha256=EpmerK5vtPa87MZtetN8fBAXtET9vRGai5ODKPAW86c,15864
9
9
  PySimultan2/taxonomy_maps.py,sha256=qgKM0CdwwgLCFj-ivzY38VaCpE_eCPKyCiBaTBazpBk,7509
10
- PySimultan2/utils.py,sha256=eCClnI1UpAOACiCMu5BmoVZ8oeR_FEWUugzsbaw41Yk,62038
10
+ PySimultan2/utils.py,sha256=XEJTW811oOYoDfXlhe2kdSyEPZiQ1_8z1fHthVYcfk0,62261
11
11
  PySimultan2/geometry/__init__.py,sha256=nJolTD1i5J8qUkOQa-r3D20aq3Co3sN31Xc0n4wJpJo,248
12
12
  PySimultan2/geometry/geometry_base.py,sha256=IQQPVxkgIdBsFJp8rPSCNiCiKO7TxkVWy-XmE8GjDbE,23367
13
13
  PySimultan2/geometry/utils.py,sha256=K_3HnqPMAlJkOh01oqjspeqsLrooG9NwIQKWf14IJ48,8513
@@ -75,8 +75,8 @@ PySimultan2/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
75
75
  PySimultan2/resources/assimp.dll,sha256=HwfDwXqoPDTFRyoQpA3qmgZoUdFtziJkV5fNtktEZEU,6081536
76
76
  PySimultan2/resources/defaultsettings.xml,sha256=s6Tk1tubLz5UYqXZWpD42EDHzedemRY1nEneoIVcUfg,392
77
77
  PySimultan2/resources/setup.bat,sha256=fjvvYfVM6TalS-QTSiKAbAId5nTsk8kGGo06ba-wWaY,32
78
- PySimultan-0.2.9.dist-info/LICENSE.txt,sha256=htoPAa6uRjSKPD1GUZXcHOzN55956HdppkuNoEsqR0E,1023
79
- PySimultan-0.2.9.dist-info/METADATA,sha256=HY1DotoLPN5fZTb5M34Sre6ck9iN6V49mA0iaThBGtY,1990
80
- PySimultan-0.2.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
81
- PySimultan-0.2.9.dist-info/top_level.txt,sha256=pbE6SbdKIEEK4vaDNmmdRTj0vesrjgRXGow8QWMTXvk,12
82
- PySimultan-0.2.9.dist-info/RECORD,,
78
+ PySimultan-0.3.0.dist-info/LICENSE.txt,sha256=53SfqMB8o2gCG74cXKJb1NtKYYrtw5S2hvtPeB5vaig,1040
79
+ PySimultan-0.3.0.dist-info/METADATA,sha256=t0eEJpKbOkbD24AK0jVsQXVcys2EURSaK3-R-Tv9izU,1990
80
+ PySimultan-0.3.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
81
+ PySimultan-0.3.0.dist-info/top_level.txt,sha256=pbE6SbdKIEEK4vaDNmmdRTj0vesrjgRXGow8QWMTXvk,12
82
+ PySimultan-0.3.0.dist-info/RECORD,,
@@ -433,6 +433,12 @@ class ComponentDictionary(SimultanObject):
433
433
  setter_fcn = self.type_setter_fcn_lookup_dict.get(type(value), set_property_to_unknown_type)
434
434
 
435
435
  setter_fcn(*fcn_arg_list)
436
+ item = self.__getitem__(key, check_dict=False)
437
+
438
+ # self._object_mapper.create_python_object(self._wrapped_obj)
439
+ #
440
+ # if isinstance(value, ):
441
+
436
442
  self._dict[key] = self.__getitem__(key, check_dict=False)
437
443
 
438
444
  def __delitem__(self, key):
@@ -460,9 +466,9 @@ class ComponentDictionary(SimultanObject):
460
466
  data_model=self._data_model,
461
467
  object_mapper=self._object_mapper)
462
468
  for component in self._wrapped_obj.Components.Items:
463
- comp_dict[component.Name] = get_obj_value(component,
464
- data_model=self._data_model,
465
- object_mapper=self._object_mapper)
469
+ comp_dict[component.Slot.SlotBase.Target.Key] = get_obj_value(component.Component,
470
+ data_model=self._data_model,
471
+ object_mapper=self._object_mapper)
466
472
  for ref_component in self._wrapped_obj.ReferencedComponents.Items:
467
473
  comp_dict[ref_component.Slot.SlotBase.Target.Name] = get_obj_value(ref_component.Target,
468
474
  data_model=self._data_model,
PySimultan2/utils.py CHANGED
@@ -380,13 +380,15 @@ def add_sub_component(comp: SimComponent,
380
380
  sub_comp.Slots.InsertItem(0, slot)
381
381
 
382
382
  if slot_extension is None:
383
- new_slot = comp.Components.FindAvailableSlot(slot, "{0}")
383
+ new_slot = comp.Components.FindAvailableSlot(slot.Target if isinstance(slot,
384
+ SimTaxonomyEntryReference)
385
+ else slot, "{0}")
384
386
  else:
385
387
  new_slot = SimSlot(sub_comp.Slots[0].Target, str(slot_extension))
386
388
 
387
389
  entry = SimChildComponentEntry(new_slot, sub_comp)
388
390
  if entry not in comp.Components.Items:
389
- comp.Components.InsertItem(0, entry)
391
+ comp.Components.InsertItem(len(comp.Components.Items), entry)
390
392
  return True
391
393
 
392
394