Skip to content

Commit

Permalink
Fixed transpose bug
Browse files Browse the repository at this point in the history
This should resolve EmbodiedCognition#6 and EmbodiedCognition#7.
However, it is not tested yet
  • Loading branch information
AKuederle committed Jul 13, 2017
1 parent 82856e5 commit 7f170f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ def read_frames(self, copy=True):
n = self.header.analog_count
raw = np.fromstring(self._handle.read(n * analog_bytes),
dtype=analog_dtype,
count=n).reshape((self.analog_used, -1))
count=n).reshape((-1, self.analog_used)).T
analog = (raw.astype(float) - offsets) * scales * gen_scale

if copy:
Expand Down

0 comments on commit 7f170f5

Please sign in to comment.