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
10bb823f
"vscode:/vscode.git/clone" did not exist on "9056a6db95019a7df48a3a2463d3d1ab3867b1ca"
Commit
10bb823f
authored
Aug 15, 2014
by
Jason Swails
Browse files
Fix Python3 compatibility with the CHARMM parsers.
parent
5d94f72b
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 @
10bb823f
...
@@ -12,7 +12,7 @@ Copyright (c) 2014 the Authors
...
@@ -12,7 +12,7 @@ Copyright (c) 2014 the Authors
Author: Jason M. Swails
Author: Jason M. Swails
Contributors:
Contributors:
Date:
July 3
, 2014
Date:
August 15
, 2014
Permission is hereby granted, free of charge, to any person obtaining a
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
copy of this software and associated documentation files (the "Software"),
...
@@ -347,6 +347,15 @@ class Atom(object):
...
@@ -347,6 +347,15 @@ class Atom(object):
retstr
+=
'; %s> '
%
(
self
.
name
)
retstr
+=
'; %s> '
%
(
self
.
name
)
return
retstr
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
):
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