Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
be3f55f6
Commit
be3f55f6
authored
Mar 12, 2014
by
Lee-Ping
Browse files
Fixed pselling mistake :)
parent
4233befd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wrappers/python/simtk/openmm/app/statedatareporter.py
wrappers/python/simtk/openmm/app/statedatareporter.py
+2
-2
No files found.
wrappers/python/simtk/openmm/app/statedatareporter.py
View file @
be3f55f6
...
@@ -92,11 +92,11 @@ class StateDataReporter(object):
...
@@ -92,11 +92,11 @@ class StateDataReporter(object):
# and open all files unbuffered
# and open all files unbuffered
if
file
.
endswith
(
'.gz'
):
if
file
.
endswith
(
'.gz'
):
if
not
have_gzip
:
if
not
have_gzip
:
raise
RuntimeError
(
"Cann
p
t write .gz file because Python could not import gzip library"
)
raise
RuntimeError
(
"Cann
o
t write .gz file because Python could not import gzip library"
)
self
.
_out
=
gzip
.
GzipFile
(
fileobj
=
open
(
file
,
'wb'
,
0
))
self
.
_out
=
gzip
.
GzipFile
(
fileobj
=
open
(
file
,
'wb'
,
0
))
elif
file
.
endswith
(
'.bz2'
):
elif
file
.
endswith
(
'.bz2'
):
if
not
have_bz2
:
if
not
have_bz2
:
raise
RuntimeError
(
"Cann
p
t write .bz2 file because Python could not import bz2 library"
)
raise
RuntimeError
(
"Cann
o
t write .bz2 file because Python could not import bz2 library"
)
self
.
_out
=
bz2
.
BZ2File
(
file
,
'w'
,
0
)
self
.
_out
=
bz2
.
BZ2File
(
file
,
'w'
,
0
)
else
:
else
:
self
.
_out
=
open
(
file
,
'w'
,
0
)
self
.
_out
=
open
(
file
,
'w'
,
0
)
...
...
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