コード例 #1
0
 def check_duplicate_schedule_type_limit_identifiers(
         self, raise_exception=True):
     """Check that there are no duplicate ScheduleTypeLimit identifiers in the model.
     """
     return check_duplicate_identifiers(self.schedule_type_limits,
                                        raise_exception,
                                        'ScheduleTypeLimit')
コード例 #2
0
    def check_duplicate_view_identifiers(self,
                                         raise_exception=True,
                                         detailed=False):
        """Check that there are no duplicate View identifiers in the model.

        Args:
            raise_exception: Boolean to note whether a ValueError should be raised
                if duplicate identifiers are found. (Default: True).
            detailed: Boolean for whether the returned object is a detailed list of
                dicts with error info or a string with a message. (Default: False).

        Returns:
            A string with the message or a list with a dictionary if detailed is True.
        """
        return check_duplicate_identifiers(
            self.views,
            raise_exception,
            'View',
            detailed,
            '010004',
            'Radiance',
            error_type='Duplicate View Identifier')
コード例 #3
0
 def check_duplicate_hvac_identifiers(self, raise_exception=True):
     """Check that there are no duplicate HVAC identifiers in the model."""
     return check_duplicate_identifiers(self.hvacs, raise_exception, 'HVAC')
コード例 #4
0
 def check_duplicate_program_type_identifiers(self, raise_exception=True):
     """Check that there are no duplicate ProgramType identifiers in the model."""
     return check_duplicate_identifiers(self.program_types, raise_exception,
                                        'ProgramType')
コード例 #5
0
 def check_duplicate_construction_set_identifiers(self,
                                                  raise_exception=True):
     """Check that there are no duplicate ConstructionSet identifiers in the model."""
     return check_duplicate_identifiers(self.construction_sets,
                                        raise_exception, 'ConstructionSet')
コード例 #6
0
 def check_duplicate_view_identifiers(self, raise_exception=True):
     """Check that there are no duplicate View identifiers in the model."""
     return check_duplicate_identifiers(self.views, raise_exception, 'View')
コード例 #7
0
 def check_duplicate_sensor_grid_identifiers(self, raise_exception=True):
     """Check that there are no duplicate SensorGrid identifiers in the model."""
     return check_duplicate_identifiers(self.sensor_grids, raise_exception,
                                        'SensorGrid')
コード例 #8
0
 def check_duplicate_modifier_set_identifiers(self, raise_exception=True):
     """Check that there are no duplicate ModifierSet identifiers in the model."""
     return check_duplicate_identifiers(self.modifier_sets, raise_exception,
                                        'ModifierSet')
コード例 #9
0
 def check_duplicate_modifier_identifiers(self, raise_exception=True):
     """Check that there are no duplicate Modifier identifiers in the model."""
     return check_duplicate_identifiers(self.modifiers, raise_exception,
                                        'Radiance Modifier')
コード例 #10
0
 def check_duplicate_schedule_identifiers(self, raise_exception=True):
     """Check that there are no duplicate Schedule identifiers in the model."""
     return check_duplicate_identifiers(self.schedules, raise_exception,
                                        'Schedule')
コード例 #11
0
 def check_duplicate_material_identifiers(self, raise_exception=True):
     """Check that there are no duplicate Material identifiers in the model."""
     return check_duplicate_identifiers(self.materials, raise_exception,
                                        'Energy Material')