Commit 7c81f1b7 authored by John Chodera (MSKCC)'s avatar John Chodera (MSKCC)
Browse files

Debugging UTF-8 issue.

parent aadc7962
......@@ -23,9 +23,14 @@ class TestBytes(unittest.TestCase):
assert newPositions == refPositions
# try encoding the checkpoint in utf-8. OpenMM should be able to handle this too
context.setPositions([(12345, 12345, 123451)])
context.loadCheckpoint(chk.decode('utf-8'))
newPositions = context.getState(getPositions=True).getPositions()._value
# JDC: TRAVIS DEBUG
print "chk = "
print chk
print "chk.decode('utf-8') = "
print chk.decode('utf-8')
#context.setPositions([(12345, 12345, 123451)])
#context.loadCheckpoint(chk.decode('utf-8'))
#newPositions = context.getState(getPositions=True).getPositions()._value
assert newPositions == refPositions
......
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