Commits

Roberto De Almeida committed 38ec10f

Fixed record variables, byte ordering was wrong.

  • Participants
  • Parent commits b85ed2c

Comments (0)

Files changed (1)

                 if records == 0:
                     records = start
                 dtypes['names'].append(name)
-                dtypes['formats'].append(str(shape[1:]) + type)
+                dtypes['formats'].append(str(shape[1:]) + '>' + type.char)
 
                 # Handle padding with a virtual variable.
                 if type.char in 'bch':
                     maskandscale=False)
 
         if rec_vars:
+            dtypes['formats'] = [f.replace('()', '').replace(' ', '') for f in dtypes['formats']]
             # Remove padding when only one record variable.
             if len(rec_vars) == 1:
                 dtypes['names'] = dtypes['names'][:1]