Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
51010f61
Commit
51010f61
authored
Oct 06, 2015
by
eric pellegrini
Browse files
Bug fix when writing the header string as a NetCDF file attribute
parent
eafd3ee4
Changes
1
Hide whitespace changes
Inline
Side-by-side
MDANSE/Framework/Formats/NetCDFFormat.py
View file @
51010f61
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment