Skip to content

Commit

Permalink
Fix _FillValue attribute error #18
Browse files Browse the repository at this point in the history
funcs.py:

    in saveNCDims(), dont call `setncattr()` if attribute is
    `_FillValue`.
  • Loading branch information
Xunius committed Jan 5, 2021
1 parent 3645615 commit f4c1146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipart/utils/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ def saveNCDims(fout, axislist):
axisvar[:]=axisdata

for kk,vv in aa.attributes.items():
if kk!='isunlimited':
if kk!='isunlimited' and kk!='_FillValue':
axisvar.setncattr(kk, vv)

return
Expand Down

0 comments on commit f4c1146

Please sign in to comment.