Skip to content

Commit fa775f9

Browse files
committed
update documentation
1 parent 9e9bacc commit fa775f9

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

teaser/data/dataclass.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import os
33
import sys
44
import warnings
5+
from typing import Union
6+
from pathlib import Path
57

68
import teaser.logic.utilities as utils
79
import 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

Comments
 (0)