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
1b942062
Commit
1b942062
authored
Dec 09, 2013
by
peastman
Browse files
Merge pull request #232 from peastman/master
Fixed bug in pull request #227
parents
d4387357
48498b10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wrappers/python/simtk/unit/basedimension.py
wrappers/python/simtk/unit/basedimension.py
+2
-2
No files found.
wrappers/python/simtk/unit/basedimension.py
View file @
1b942062
...
@@ -91,12 +91,12 @@ class BaseDimension(object):
...
@@ -91,12 +91,12 @@ class BaseDimension(object):
return
'BaseDimension("%s")'
%
self
.
name
return
'BaseDimension("%s")'
%
self
.
name
def
__eq__
(
self
,
other
):
def
__eq__
(
self
,
other
):
if
is
I
nstance
(
other
,
BaseDimension
):
if
is
i
nstance
(
other
,
BaseDimension
):
return
self
.
_index
==
other
.
_index
return
self
.
_index
==
other
.
_index
return
False
return
False
def
__ne__
(
self
,
other
):
def
__ne__
(
self
,
other
):
if
is
I
nstance
(
other
,
BaseDimension
):
if
is
i
nstance
(
other
,
BaseDimension
):
return
self
.
_index
!=
other
.
_index
return
self
.
_index
!=
other
.
_index
return
False
return
False
...
...
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