"docs-source/usersguide/vscode:/vscode.git/clone" did not exist on "fa8934671bee80d899076258ce0e8e944a2c12c0"
Commit d446dc26 authored by peastman's avatar peastman
Browse files

Merge pull request #586 from swails/charmm_py3

Fix Python3 compatibility with the CHARMM parsers
parents 5d94f72b 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):
......
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