-
Notifications
You must be signed in to change notification settings - Fork 130
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
base: master
Are you sure you want to change the base?
Move LieTheory serialization to src; add WeightLattice
serialization
#4414
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
|
|
||
function save_object(s::SerializerState, P::WeightLattice) | ||
save_data_dict(s) do | ||
save_typed_object(s, root_system(P), :root_system) |
There was a problem hiding this comment.
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}) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
This part was not moved as part of #4399.