Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/netCDF4/_netCDF4.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2062,10 +2062,11 @@ cdef _get_vars(group, bint auto_complex=False):
endianness = None
with nogil:
ierr = nc_inq_var_endian(_grpid, varid, &iendian)
if ierr == NC_NOERR and iendian == NC_ENDIAN_LITTLE:
endianness = '<'
elif iendian == NC_ENDIAN_BIG:
endianness = '>'
if ierr == NC_NOERR:
if iendian == NC_ENDIAN_LITTLE:
endianness = '<'
elif iendian == NC_ENDIAN_BIG:
endianness = '>'
# check to see if it is a supported user-defined type.
try:
datatype = _nctonptype[xtype]
Expand Down