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
d446dc26
Commit
d446dc26
authored
Aug 18, 2014
by
peastman
Browse files
Merge pull request #586 from swails/charmm_py3
Fix Python3 compatibility with the CHARMM parsers
parents
5d94f72b
10bb823f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
wrappers/python/simtk/openmm/app/internal/charmm/topologyobjects.py
...ython/simtk/openmm/app/internal/charmm/topologyobjects.py
+10
-1
No files found.
wrappers/python/simtk/openmm/app/internal/charmm/topologyobjects.py
View file @
d446dc26
...
...
@@ -12,7 +12,7 @@ Copyright (c) 2014 the Authors
Author: Jason M. Swails
Contributors:
Date:
July 3
, 2014
Date:
August 15
, 2014
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
...
...
@@ -347,6 +347,15 @@ class Atom(object):
retstr
+=
'; %s> '
%
(
self
.
name
)
return
retstr
def
__lt__
(
self
,
other
):
return
self
.
idx
<
other
.
idx
def
__gt__
(
self
,
other
):
return
self
.
idx
>
other
.
idx
def
__le__
(
self
,
other
):
return
not
self
>
other
def
__ge__
(
self
,
other
):
return
not
self
<
other
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
class
AtomList
(
TrackedList
):
...
...
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