Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dummy hash for AbsIdealSheaf #4366

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

lgoettgens
Copy link
Member

Some progress towards #2222.

Copy link

codecov bot commented Nov 29, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 84.34%. Comparing base (17ba921) to head (25a8cc4).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
.../AlgebraicGeometry/Schemes/Sheaves/IdealSheaves.jl 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4366      +/-   ##
==========================================
- Coverage   84.34%   84.34%   -0.01%     
==========================================
  Files         651      651              
  Lines       86744    86749       +5     
==========================================
+ Hits        73163    73167       +4     
- Misses      13581    13582       +1     
Files with missing lines Coverage Δ
.../AlgebraicGeometry/Schemes/Sheaves/IdealSheaves.jl 81.45% <0.00%> (-0.19%) ⬇️

... and 2 files with indirect coverage changes

@@ -587,6 +587,11 @@ function ==(I::AbsIdealSheaf, J::AbsIdealSheaf)
return true
end

function Base.hash(I::AbsIdealSheaf, h::UInt)
h = hash(scheme(I), h)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just to be sure: You deliberately choose the hash-value of the scheme on which I is defined?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was the suggestion of @HechtiDerLachs. I assumed that this is some property that all == AbsIdealSheaves have in common

Copy link
Collaborator

Choose a reason for hiding this comment

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

Indeed, if you were looking precisely for something that == AbsIdealSheaves have in common (and usually many more..), this is certainly the case. So the choice makes sense.

@joschmitt joschmitt merged commit 13a2cd0 into oscar-system:master Dec 2, 2024
30 checks passed
@lgoettgens lgoettgens deleted the lg/hash-IdealSheaf branch December 2, 2024 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants