Commit af74717d authored by kyleabeauchamp's avatar kyleabeauchamp
Browse files

Fix bug in dcd box vector writing.

parent 7f8c5089
...@@ -112,8 +112,8 @@ class DCDFile(object): ...@@ -112,8 +112,8 @@ class DCDFile(object):
file.seek(0, os.SEEK_END) file.seek(0, os.SEEK_END)
boxVectors = self._topology.getPeriodicBoxVectors() boxVectors = self._topology.getPeriodicBoxVectors()
if boxVectors is not None: if boxVectors is not None:
if getPeriodicBoxVectors is not None: if periodicBoxVectors is not None:
boxVectors = getPeriodicBoxVectors boxVectors = periodicBoxVectors
elif unitCellDimensions is not None: elif unitCellDimensions is not None:
if is_quantity(unitCellDimensions): if is_quantity(unitCellDimensions):
unitCellDimensions = unitCellDimensions.value_in_unit(nanometers) unitCellDimensions = unitCellDimensions.value_in_unit(nanometers)
......
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