Skip to content

Inequality operators#176

Draft
elvinpoole wants to merge 6 commits into
LSSTDESC:mainfrom
elvinpoole:ineq_operators
Draft

Inequality operators#176
elvinpoole wants to merge 6 commits into
LSSTDESC:mainfrom
elvinpoole:ineq_operators

Conversation

@elvinpoole
Copy link
Copy Markdown
Contributor

  • Added overloads of operators < <= > >= == and !=
  • The == operator will revert to default behaviour if you try hsp_map == hsp_map and requires explicitly redefining the base object hash. I'm happy to modify or revert this one if there are any dangers in doing this

@@ -2358,7 +2420,7 @@ def __invert__(self):
sentinel=self._sentinel,
)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this does expand the full sparse map, but I think the apply_operator function already did this with self._sparse_map.copy()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant