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

fix for serializing 0 ideal #2871

Merged
merged 3 commits into from
Sep 29, 2023
Merged

Conversation

antonydellavecchia
Copy link
Collaborator

Didn't realise base_ring was the function i was looking for

@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

Merging #2871 (0faef12) into master (558c6db) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #2871   +/-   ##
=======================================
  Coverage   80.58%   80.58%           
=======================================
  Files         456      456           
  Lines       64992    64992           
=======================================
+ Hits        52371    52372    +1     
+ Misses      12621    12620    -1     
Files Coverage Δ
src/Serialization/Rings.jl 98.65% <100.00%> (ø)

... and 5 files with indirect coverage changes

@@ -259,7 +259,7 @@ const IdealUnionType = Union{MPolyIdeal, LaurentMPolyIdeal, FreeAssAlgIdeal}
function save_type_params(s::SerializerState, x::T) where T <: IdealUnionType
save_data_dict(s) do
save_object(s, encode_type(T), :name)
ref = save_as_ref(s, parent(gens(x)[1]))
ref = save_as_ref(s, base_ring(x))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, that's exactly what I was thinking. Sorry, I should have spelled out that fix straight away. At some point it was also suggested to support ring(I::Ideal) rather than base_ring(I::Ideal), but that does not seem to have gone through, yet.

@antonydellavecchia antonydellavecchia merged commit f9fb3b5 into master Sep 29, 2023
13 of 15 checks passed
@antonydellavecchia antonydellavecchia deleted the adv/ideal-serialize-bf branch September 29, 2023 12:59
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.

2 participants