Commit 51010f61 authored by eric pellegrini's avatar eric pellegrini
Browse files

Bug fix when writing the header string as a NetCDF file attribute

parent eafd3ee4
......@@ -70,6 +70,9 @@ class NetCDFFormat(IFormat):
outputFile = NetCDFFile(filename, 'w')
if header:
# This is to avoid any segmentation fault when writing the NetCDF header field
header = str(header)
outputFile.header = header
# Loop over the OutputVariable instances to write.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment