Exemple #1
0
 def _assign_loaded_columns(self):
     for ss in range(self.n_storeys):
         for bb in range(self.n_bays):
             sect_is = self._loaded_column_section_ids[ss][bb]
             if hasattr(sect_is, "__len__"):
                 n_sections = len(sect_is)
                 self.columns[ss][bb].split_into_multiple(
                     [1] * n_sections)  # TODO: should be lengths
                 for sect_i in range(len(sect_is)):
                     column_sect_id = str(
                         self._loaded_column_section_ids[ss][bb][sect_i])
                     sect_dictionary = self._loaded_column_sections[
                         column_sect_id]
                     sf.add_to_obj(self.columns[ss][bb].sections[sect_i],
                                   sect_dictionary)
             else:  # deprecated loading
                 deprecation(
                     "Frame data structure is out-of-date, "
                     "run sfsimodels.migrate_ecp(<file-path>, <out-file-path>)."
                 )
                 column_sect_id = str(
                     self._loaded_column_section_ids[ss][bb])
                 sect_dictionary = self._loaded_column_sections[
                     column_sect_id]
                 sf.add_to_obj(self.columns[ss][bb].sections[0],
                               sect_dictionary)
Exemple #2
0
 def _assign_loaded_walls(
         self):  # This is now deprecated in favour of element based loading
     for ss in range(self.n_storeys):
         sect_is = self._loaded_wall_section_ids[ss]
         if hasattr(sect_is, "__len__"):
             n_sections = len(sect_is)
             self.elements[ss].split_into_multiple(
                 [1] * n_sections)  # TODO: should be lengths
             for sect_i in range(len(sect_is)):
                 wall_sect_id = str(
                     self._loaded_wall_section_ids[ss][sect_i])
                 sect_dictionary = self._loaded_wall_sections[wall_sect_id]
                 sf.add_to_obj(self.elements[ss].sections[sect_i],
                               sect_dictionary)
         else:  # deprecated loading
             deprecation(
                 "Frame data structure is out-of-date, please load and save the file to update."
             )
             wall_sect_id = str(self._loaded_wall_section_ids[ss])
             sect_dictionary = self._loaded_wall_sections[wall_sect_id]
             sf.add_to_obj(self.elements[ss].sections[0], sect_dictionary)
Exemple #3
0
 def __init__(self):
     deprecation("Foundation class is deprecated, use RaftFoundation.")
     super(FoundationRaft, self).__init__()
Exemple #4
0
 def __init__(self):
     deprecation("FoundationPad class is deprecated, use PadFoundation.")
     super(FoundationPad, self).__init__()
Exemple #5
0
 def pad_position_w(self, i):
     deprecation(
         'pad_position_w has deprecated - use get_pad_pos_in_width_dir')
     return self.get_pad_pos_in_width_dir(i)
Exemple #6
0
 def pad_position_l(self, i):
     deprecation(
         'pad_position_l has deprecated - use get_pad_pos_in_length_dir')
     return self.get_pad_pos_in_length_dir(i)
Exemple #7
0
 def sfsimodels_version(self, value):
     deprecation('sfsimodels_version automatically set')
Exemple #8
0
def dicts_to_objects(data, verbose=0):
    """Deprecated. Use ecp_dict_to_objects"""
    deprecation(
        'Deprecated, dicts_to_objects should be switched to ecp_dict_to_objects'
    )
    ecp_dict_to_objects(data, verbose=verbose)