Skip to content

Commit

Permalink
Allow serialization of broadcasted arrays on windows too
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed May 18, 2018
1 parent 492d877 commit 7bf5a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asdf/generic_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ def write_array(self, arr):
arr.flush()
self.fast_forward(len(arr.data))
else:
_array_tofile(self._fd, self._fd.write, arr)
_array_tofile(self._fd, self._fd.write, np.ascontiguousarray(arr))

def can_memmap(self):
return True
Expand Down

0 comments on commit 7bf5a1f

Please sign in to comment.