Skip to content

Commit

Permalink
Fix channel to add offset in case of implicit_linear seqrep
Browse files Browse the repository at this point in the history
  • Loading branch information
rune2002 committed Apr 6, 2022
1 parent 24ea5a0 commit dd4124b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tdm_loader/tdm_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ def channel(self, channel_group, channel, occurrence=0, ch_occurrence=0):
elif seqrep == "implicit_linear":
# for time channels. contins two float values
# for building time scale (constant step width)
column = np.array(range(0, nrows)) * data_block[-1]
offset = data_block[0]
column = np.array(range(0, nrows)) * data_block[-1] + offset
elif seqrep == "raw_linear":
# mapped to proprtional integer scale. needs to be re-scaled to actual values
offset, slope = np.asarray(
Expand Down

0 comments on commit dd4124b

Please sign in to comment.