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

Move LieTheory serialization to src; add WeightLattice serialization #4414

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lgoettgens
Copy link
Member

This part was not moved as part of #4399.

Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.38%. Comparing base (cd79a0b) to head (301950c).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4414   +/-   ##
=======================================
  Coverage   84.38%   84.38%           
=======================================
  Files         658      658           
  Lines       87157    87133   -24     
=======================================
- Hits        73550    73530   -20     
+ Misses      13607    13603    -4     
Files with missing lines Coverage Δ
experimental/LieAlgebras/src/serialization.jl 100.00% <ø> (ø)
experimental/LieAlgebras/test/WeylGroup-test.jl 100.00% <ø> (+3.12%) ⬆️
src/Serialization/LieTheory.jl 100.00% <100.00%> (ø)
src/Serialization/main.jl 85.27% <ø> (ø)

... and 2 files with indirect coverage changes


function save_object(s::SerializerState, P::WeightLattice)
save_data_dict(s) do
save_typed_object(s, root_system(P), :root_system)
Copy link
Collaborator

Choose a reason for hiding this comment

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

the type information for the root system will be moved out during the upcoming refactor,
If you can rewrite this so that Weight Lattice uses params, this will make the upgrade simple / virtually nothing (as in the file wont change just the code)

end
end

function load_object(s::DeserializerState, ::Type{WeightLattice})
Copy link
Collaborator

Choose a reason for hiding this comment

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

this would then need to accept root system as the third parameter

end

function load_object(s::DeserializerState, ::Type{WeylGroup})
R = load_typed_object(s, :root_system)
Copy link
Collaborator

Choose a reason for hiding this comment

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

similarly here, however since we could already save this, I think it's best to leave this to the refactor.

Copy link
Collaborator

@antonydellavecchia antonydellavecchia left a comment

Choose a reason for hiding this comment

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

Looks good, see comments.

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