Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment