@@ -82,12 +82,15 @@ def append_set_dimension(self, labels=None):
82
82
Append a new SetDimension to the list of existing dimension
83
83
descriptors.
84
84
85
+ :param labels: The set of sample labels
86
+ :type labels: list or convertible to list
87
+
85
88
:returns: The newly created SetDimension.
86
89
:rtype: nixio.SetDimension
87
90
"""
88
91
index = len (self .dimensions ) + 1
89
92
setdim = SetDimension .create_new (self , index )
90
- if labels :
93
+ if labels is not None :
91
94
setdim .labels = labels
92
95
if self .file .auto_update_timestamps :
93
96
self .force_updated_at ()
@@ -101,6 +104,12 @@ def append_sampled_dimension(self, sampling_interval, label=None,
101
104
102
105
:param sampling_interval: The sampling interval of the SetDimension to create.
103
106
:type sampling_interval: float
107
+ :param label: The label of the dimension
108
+ :type label: str
109
+ :param unit: The physical unit of the dimension
110
+ :type unit: str
111
+ :param offset: The offset between 0 and the first sample
112
+ :type offset: float
104
113
105
114
:returns: The newly created SampledDimension.
106
115
:rtype: nixio.SampledDimension
@@ -124,6 +133,10 @@ def append_range_dimension(self, ticks=None, label=None, unit=None):
124
133
125
134
:param ticks: The ticks of the RangeDimension to create.
126
135
:type ticks: list of float
136
+ :param label: The label of the dimension
137
+ :type label: str
138
+ :param unit: The physical unit of the dimension
139
+ :type unit: str
127
140
128
141
:returns: The newly created RangeDimension.
129
142
:rtype: nixio.RangeDimension
0 commit comments