G-Node/nixpy

Delete old unused functions

achilleas-k opened this issue · 1 comments

nixpy/nixio/data_array.py

Lines 186 to 196 in ed22c88

def _get_dimension_by_pos(self, index):
h5dim = self._h5group.open_group("dimensions").open_group(str(index))
dimtype = h5dim.get_attr("dimension_type")
if DimensionType(dimtype) == DimensionType.Sample:
return SampledDimension(h5dim, index)
elif DimensionType(dimtype) == DimensionType.Range:
return RangeDimension(h5dim, index)
elif DimensionType(dimtype) == DimensionType.Set:
return SetDimension(h5dim, index)
else:
raise TypeError("Invalid Dimension object in file.")

Old unused function. Handled by DimensionContainer.

nixpy/nixio/multi_tag.py

Lines 112 to 115 in 1eedabf

def _get_slice(self, data, index):
offset, count = self._get_offset_and_count(data, index)
sl = tuple(slice(o, o + c) for o, c in zip(offset, count))
return sl

Old unused function. Replaced by _calc_data_slices().