Commit 5b4f3fea authored by peastman's avatar peastman
Browse files

Fixed error using CMAP with GRO files on Python 3

parent a4d327f5
...@@ -6,7 +6,7 @@ Simbios, the NIH National Center for Physics-Based Simulation of ...@@ -6,7 +6,7 @@ Simbios, the NIH National Center for Physics-Based Simulation of
Biological Structures at Stanford, funded under the NIH Roadmap for Biological Structures at Stanford, funded under the NIH Roadmap for
Medical Research, grant U54 GM072970. See https://simtk.org. Medical Research, grant U54 GM072970. See https://simtk.org.
Portions copyright (c) 2012-2015 Stanford University and the Authors. Portions copyright (c) 2012-2016 Stanford University and the Authors.
Authors: Peter Eastman Authors: Peter Eastman
Contributors: Jason Swails Contributors: Jason Swails
...@@ -814,7 +814,7 @@ class GromacsTopFile(object): ...@@ -814,7 +814,7 @@ class GromacsTopFile(object):
map = [] map = []
for i in range(mapSize): for i in range(mapSize):
for j in range(mapSize): for j in range(mapSize):
map.append(float(params[8+mapSize*((j+mapSize/2)%mapSize)+((i+mapSize/2)%mapSize)])) map.append(float(params[8+mapSize*((j+mapSize//2)%mapSize)+((i+mapSize//2)%mapSize)]))
map = tuple(map) map = tuple(map)
if map not in mapIndices: if map not in mapIndices:
mapIndices[map] = cmap.addMap(mapSize, map) mapIndices[map] = cmap.addMap(mapSize, map)
......
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