Helmholtz-AI-Energy / Helmholtz-AI-Energy/propulate

Clean up equality function

Open
#55 3 comments 0 reactions 1 assignee Claimed by @mcw92 View on GitHub
Dominant language
Python
Stars
46
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Currently, the `Individual` class has two functions checking for different kinds of equality, `__eq__` and `equals`. While `__eq__` checks for equality of traits, loss, and all other attributes (whether two individuals really are the same same and identical) , `equals` checks for equality of traits and loss only. Currently, `__eq__` (which overrides the `==` operator) is unused, only `equals()` is used. Remove current `__eq__`function and rename current `equals` function to `__eq__.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.