Skip to content

Commit

Permalink
[mtag] change count behaviour to match nix
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrewe authored and achilleas-k committed Oct 31, 2018
1 parent 2f29166 commit 779ee10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixio/pycore/multi_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _get_offset_and_count(self, data, index):
unit = units[idx]
c = self._pos_to_idx(offset.item(idx) + extent.item(idx),
unit, dim) - offsets[idx]
counts.append(c if c > 1 else 1)
counts.append(c + 1 if c >= 1 else 1)
else:
counts = [1]*len(data.dimensions)

Expand Down

0 comments on commit 779ee10

Please sign in to comment.