Skip to content

Conversation

@ThomasBreuer
Copy link
Collaborator

There is a == method for two FPModules that compares w.r.t. equality as sets.
The default hash method compares the objectids.
In order to satisfy the general rule that isequal(x, y) implies hash(x) == hash(y), we need a special hash method.

There is a `==` method for two `FPModule`s that compares w.r.t.
equality as sets.
The default `hash` method compares the `objectid`s.
In order to satisfy the general rule that `isequal(x,y)` implies
`hash(x) == hash(y)`, we need a special `hash` method.
@ThomasBreuer ThomasBreuer added bugfix This change fixes an existing bug release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes labels Aug 6, 2025
@codecov
Copy link

codecov bot commented Aug 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.97%. Comparing base (94be2f6) to head (58d2594).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2139   +/-   ##
=======================================
  Coverage   87.97%   87.97%           
=======================================
  Files         126      126           
  Lines       31671    31671           
=======================================
  Hits        27861    27861           
  Misses       3810     3810           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ThomasBreuer
Copy link
Collaborator Author

The failure in Julia nightly seems to be caused by the changes from JuliaLang/julia/pull/55841.

@lgoettgens lgoettgens merged commit 8f57d13 into Nemocas:master Aug 7, 2025
20 of 21 checks passed
@lgoettgens lgoettgens mentioned this pull request Aug 7, 2025
@ThomasBreuer ThomasBreuer deleted the TB_FPModule_hash branch August 7, 2025 09:43
fieker pushed a commit that referenced this pull request Sep 5, 2025
There is a `==` method for two `FPModule`s that compares w.r.t.
equality as sets.
The default `hash` method compares the `objectid`s.
In order to satisfy the general rule that `isequal(x,y)` implies
`hash(x) == hash(y)`, we need a special `hash` method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix This change fixes an existing bug release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants