Skip to content

Commit

Permalink
Fix access to dataOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiLehe committed Oct 23, 2024
1 parent bb6882e commit b52ebda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def read_field_cartesian( filename, iteration, field, coord, axis_labels,
grid_spacing = list( group.attrs['gridSpacing'] )
global_offset = list( group.attrs['gridGlobalOffset'] )
position = list( dset.attrs['position'] )
if dset.attrs['dataOrder'].decode() == 'F':
if group.attrs['dataOrder'].decode() == 'F':
grid_spacing = grid_spacing[::-1]
global_offset = global_offset[::-1]
position = position[::-1]
Expand Down

0 comments on commit b52ebda

Please sign in to comment.