honeybee-energy 1.116.39__py2.py3-none-any.whl → 1.116.41__py2.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.

Potentially problematic release.


This version of honeybee-energy might be problematic. Click here for more details.

@@ -775,17 +775,6 @@ class ModelEnergyProperties(object):
775
775
  msgs.append(self.host.check_matching_adjacent_areas(tol, False, detailed))
776
776
  msgs.append(self.host.check_all_air_boundaries_adjacent(False, detailed))
777
777
 
778
- # perform checks that are specific to EnergyPlus
779
- # perform checks for duplicate identifiers
780
- msgs.append(self.check_duplicate_material_identifiers(False, detailed))
781
- msgs.append(self.check_duplicate_construction_identifiers(False, detailed))
782
- msgs.append(self.check_duplicate_construction_set_identifiers(False, detailed))
783
- msgs.append(
784
- self.check_duplicate_schedule_type_limit_identifiers(False, detailed))
785
- msgs.append(self.check_duplicate_schedule_identifiers(False, detailed))
786
- msgs.append(self.check_duplicate_program_type_identifiers(False, detailed))
787
- msgs.append(self.check_duplicate_hvac_identifiers(False, detailed))
788
- msgs.append(self.check_duplicate_shw_identifiers(False, detailed))
789
778
  # perform checks for specific energy simulation rules
790
779
  msgs.append(self.check_all_zones_have_one_hvac(False, detailed))
791
780
  msgs.append(self.check_detailed_hvac_rooms(False, detailed))
@@ -803,6 +792,44 @@ class ModelEnergyProperties(object):
803
792
  raise ValueError(full_msg)
804
793
  return full_msg
805
794
 
795
+ def check_generic(self, raise_exception=True, detailed=False):
796
+ """Check generic of the aspects of the Model energy properties.
797
+
798
+ This includes checks for everything except duplicate identifiers for
799
+ constructions, schedules, etc. Typically, these checks just add to the
800
+ validation time without providing useful information since extension
801
+ objects with duplicate IDs are lost during HBJSON serialization.
802
+
803
+ Args:
804
+ raise_exception: Boolean to note whether a ValueError should be raised
805
+ if any errors are found. If False, this method will simply
806
+ return a text string with all errors that were found.
807
+ detailed: Boolean for whether the returned object is a detailed list of
808
+ dicts with error info or a string with a message. (Default: False).
809
+
810
+ Returns:
811
+ A text string with all errors that were found or a list if detailed is True.
812
+ This string (or list) will be empty if no errors were found.
813
+ """
814
+ # set up defaults to ensure the method runs correctly
815
+ detailed = False if raise_exception else detailed
816
+ msgs = []
817
+ # perform checks for specific energy simulation rules
818
+ msgs.append(self.check_all_zones_have_one_hvac(False, detailed))
819
+ msgs.append(self.check_detailed_hvac_rooms(False, detailed))
820
+ msgs.append(self.check_shw_rooms_in_model(False, detailed))
821
+ msgs.append(self.check_maximum_elevation(1000, False, detailed))
822
+ msgs.append(self.check_one_vegetation_material(False, detailed))
823
+ msgs.append(self.check_interior_constructions_reversed(False, detailed))
824
+ # output a final report of errors or raise an exception
825
+ full_msgs = [msg for msg in msgs if msg]
826
+ if detailed:
827
+ return [m for msg in full_msgs for m in msg]
828
+ full_msg = '\n'.join(full_msgs)
829
+ if raise_exception and len(full_msgs) != 0:
830
+ raise ValueError(full_msg)
831
+ return full_msg
832
+
806
833
  def check_all(self, raise_exception=True, detailed=False):
807
834
  """Check all of the aspects of the Model energy properties.
808
835
 
@@ -820,6 +847,8 @@ class ModelEnergyProperties(object):
820
847
  # set up defaults to ensure the method runs correctly
821
848
  detailed = False if raise_exception else detailed
822
849
  msgs = []
850
+ # perform checks for duplicate identifiers
851
+ msgs.append(self.check_all_duplicate_identifiers(False, detailed))
823
852
  # perform checks for specific energy simulation rules
824
853
  msgs.append(self.check_all_zones_have_one_hvac(False, detailed))
825
854
  msgs.append(self.check_detailed_hvac_rooms(False, detailed))
@@ -837,13 +866,14 @@ class ModelEnergyProperties(object):
837
866
  return full_msg
838
867
 
839
868
  def check_all_duplicate_identifiers(self, raise_exception=True, detailed=False):
840
- """Check that there are no duplicate identifiers for any geometry objects.
869
+ """Check that there are no duplicate identifiers for any energy objects.
841
870
 
842
- This includes Rooms, Faces, Apertures, Doors, Shades, and ShadeMeshes.
871
+ This includes Materials, Constructions, ConstructionSets, Schedules,
872
+ Programs, HVACs, and SHWs.
843
873
 
844
874
  Args:
845
875
  raise_exception: Boolean to note whether a ValueError should be raised
846
- if any Model errors are found. If False, this method will simply
876
+ if any duplicate identifiers are found. If False, this method will simply
847
877
  return a text string with all errors that were found. (Default: True).
848
878
  detailed: Boolean for whether the returned object is a detailed list of
849
879
  dicts with error info or a string with a message. (Default: False).
@@ -1175,7 +1205,7 @@ class ModelEnergyProperties(object):
1175
1205
  all_err.append(msg)
1176
1206
 
1177
1207
  # gather a list of all the rooms and evaluate it against the HVACs
1178
- room_ids = set(room.identifier for room in self.host.rooms)
1208
+ room_ids = set(room.zone for room in self.host.rooms)
1179
1209
  rooms_with_hvac = set()
1180
1210
  problem_hvacs, problem_rooms = [], []
1181
1211
  for hvac in hvacs:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-energy
3
- Version: 1.116.39
3
+ Version: 1.116.41
4
4
  Summary: Energy simulation library for honeybee.
5
5
  Home-page: https://github.com/ladybug-tools/honeybee-energy
6
6
  Author: Ladybug Tools
@@ -14,7 +14,7 @@ Classifier: License :: OSI Approved :: GNU Affero General Public License v3
14
14
  Classifier: Operating System :: OS Independent
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: honeybee-core==1.61.21
17
+ Requires-Dist: honeybee-core==1.61.22
18
18
  Requires-Dist: honeybee-standards==2.0.7
19
19
  Provides-Extra: openstudio
20
20
  Requires-Dist: honeybee-openstudio==0.3.10; extra == "openstudio"
@@ -115,7 +115,7 @@ honeybee_energy/properties/aperture.py,sha256=lR2zMmGg-c0uhAiIq26Rk3iAV0_v-c6kiI
115
115
  honeybee_energy/properties/door.py,sha256=IYNOkzLWJG5c4_EsHc1avWzZ-08a2RfjV0WzfivIvwc,15622
116
116
  honeybee_energy/properties/extension.py,sha256=ILzHYtu5Y_KCOUixipWY9NTJHFgvZI7v27sDcFLuSmg,8539
117
117
  honeybee_energy/properties/face.py,sha256=-7lj9_fzoGQ0QhGo_f7U6gUuB3Xy87fpgwSYnVWwZ8s,11400
118
- honeybee_energy/properties/model.py,sha256=vda-ibnTtqPpQrRbsRfz6Pz1LCwAXjCVUfSoQigi65k,129063
118
+ honeybee_energy/properties/model.py,sha256=vpXHFFCwmRHBrj3U_CSKbNtEqQNVt5lRNABfTWC9UnY,130477
119
119
  honeybee_energy/properties/room.py,sha256=QAVRTWQKuSRHH7-nGx74q3UuaLfb01ZIbvixFTup9Ew,82311
120
120
  honeybee_energy/properties/shade.py,sha256=Aj1RZh2KSkVMn5VT_QUckF_5R3I0O3b35EabqaI2i5g,14107
121
121
  honeybee_energy/properties/shademesh.py,sha256=ykbs4llT86C_U5BhQy2EbINewfg9eVxiPaq5yCRhud8,11486
@@ -156,9 +156,9 @@ honeybee_energy/ventcool/opening.py,sha256=ZywoADlNQ6_8OfjV71ZUpbCAetQrRVj7aprBj
156
156
  honeybee_energy/ventcool/simulation.py,sha256=gMF4sgCQ5R4iFWPnvvB3wxgeP_zEwnWl71ObIIe4XGU,14423
157
157
  tests/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
158
158
  tests/fixtures/userdata_fixtures.py,sha256=yDvBR6nsltel_U8hUoUsJ6yufPKTR7Wnsgxe68HtswQ,313
159
- honeybee_energy-1.116.39.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
160
- honeybee_energy-1.116.39.dist-info/METADATA,sha256=cAw5uDmOcI2GYgR43I3hCcnvfvhtJzXSxvgtcf_iatc,3635
161
- honeybee_energy-1.116.39.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
162
- honeybee_energy-1.116.39.dist-info/entry_points.txt,sha256=QOMJbH-StaxT4hCjskZtqetNCMNioP3ZiuhoLQ6MANc,63
163
- honeybee_energy-1.116.39.dist-info/top_level.txt,sha256=V9Lz0281hfT83Fy0fSdn_6vwRK9vTQe1_LQXd0_-gAI,22
164
- honeybee_energy-1.116.39.dist-info/RECORD,,
159
+ honeybee_energy-1.116.41.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
160
+ honeybee_energy-1.116.41.dist-info/METADATA,sha256=rEa9KQe-8tbRKDxriqBx5gc_ccRIdJqkTzns3aDgN7Y,3635
161
+ honeybee_energy-1.116.41.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
162
+ honeybee_energy-1.116.41.dist-info/entry_points.txt,sha256=QOMJbH-StaxT4hCjskZtqetNCMNioP3ZiuhoLQ6MANc,63
163
+ honeybee_energy-1.116.41.dist-info/top_level.txt,sha256=V9Lz0281hfT83Fy0fSdn_6vwRK9vTQe1_LQXd0_-gAI,22
164
+ honeybee_energy-1.116.41.dist-info/RECORD,,