"csrc/vscode:/vscode.git/clone" did not exist on "e2e0225cd18b7ef933d529792f362bafa13f0c7b"
Commit cdff97b1 authored by peastman's avatar peastman
Browse files

Merge pull request #143 from peastman/master

Include a comment at the top of PDB files
parents 21029cfb 6c4ed548
...@@ -36,7 +36,8 @@ import sys ...@@ -36,7 +36,8 @@ import sys
import math import math
import xml.etree.ElementTree as etree import xml.etree.ElementTree as etree
from copy import copy from copy import copy
from simtk.openmm import Vec3 from datetime import date
from simtk.openmm import Vec3, Platform
from simtk.openmm.app.internal.pdbstructure import PdbStructure from simtk.openmm.app.internal.pdbstructure import PdbStructure
from simtk.openmm.app import Topology from simtk.openmm.app import Topology
from simtk.unit import nanometers, angstroms, is_quantity, norm, Quantity from simtk.unit import nanometers, angstroms, is_quantity, norm, Quantity
...@@ -242,6 +243,7 @@ class PDBFile(object): ...@@ -242,6 +243,7 @@ class PDBFile(object):
- topology (Topology) The Topology defining the molecular system being written - topology (Topology) The Topology defining the molecular system being written
- file (file=stdout) A file to write the file to - file (file=stdout) A file to write the file to
""" """
print >>file, "REMARK 1 CREATED WITH OPENMM %s, %s" % (Platform.getOpenMMVersion(), str(date.today()))
boxSize = topology.getUnitCellDimensions() boxSize = topology.getUnitCellDimensions()
if boxSize is not None: if boxSize is not None:
size = boxSize.value_in_unit(angstroms) size = boxSize.value_in_unit(angstroms)
......
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