Skip to content

Commit

Permalink
reshape bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Jul 23, 2019
1 parent d6cd79b commit e876edb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sami2py/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def get_unformatted_data(dat_dir, var_name, reshape=False, dim0=0, dim1=0):
binary_file.close()

if reshape:
float_data.shape = (dim0, dim1)
float_data = np.reshape(float_data, (dim0, dim1), order='F')
return float_data[1:-1, :]
return float_data[1:-1]
else:
return float_data[1:-1]

0 comments on commit e876edb

Please sign in to comment.