22import os
33import sys
44import warnings
5+ from typing import Union
6+ from pathlib import Path
57
68import teaser .logic .utilities as utils
79import json
@@ -26,6 +28,12 @@ class DataClass(object):
2628 construction_data : ConstructionData
2729 The prefix of this parameter indicates which statistical data about building
2830 elements should be used. Its type is the enum class ConstructionData.
31+ custom_path_type_elements: str or Path
32+ Custom path to json file of TypeElements. Default: None
33+ custom_path_material_templates: str or Path
34+ Custom path to json file of MaterialTemplates. Default: None
35+ custom_path_use_conditions: str or Path
36+ Custom path to json file of UseConditions. Default: None
2937
3038 Attributes
3139 ----------
@@ -49,9 +57,9 @@ class DataClass(object):
4957
5058 def __init__ (self ,
5159 construction_data : ConstructionData ,
52- custom_path_type_elements : str = None ,
53- custom_path_material_templates : str = None ,
54- custom_path_use_conditions : str = None ) -> object :
60+ custom_path_type_elements : Union [ str , Path ] = None ,
61+ custom_path_material_templates : Union [ str , Path ] = None ,
62+ custom_path_use_conditions : Union [ str , Path ] = None ) -> object :
5563
5664 """Construct DataClass."""
5765 self .element_bind = None
0 commit comments