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
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):
......
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