forked from oscar-system/Oscar.jl
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Serialize Types with Attributes (oscar-system#4020)
* first attempts at writing the serializers for the new types PhylogeneticModel and GroupBasedPhylogeneticModel * include serialization functions from AlgebraicStatistics * first steps to serializing attributes * saving and loading attributes working * added some documentation on with_attrs * updated docs, + removed algebraic stats commits, and fixed comment * Update experimental/AlgebraicStatistics/src/AlgebraicStatistics.jl * Apply suggestions from code review Co-authored-by: Lars Göttgens <[email protected]> * includes load_attrs and save_attrs in import all function * Apply suggestions from code review Co-authored-by: Lars Göttgens <[email protected]> * changed type_attr_map to a function * type_attr_map -> type_attr_dict * uses encode type to setup type_attr_map * still issues with the test * More `Type` -> `String` * forgot to with_attrs to save in setup_tests * toric tests passing * moved save_attrs to appropriate line * moved attrs_list to appropriate line * Update src/Serialization/main.jl Co-authored-by: Lars Göttgens <[email protected]> * Update src/Serialization/main.jl Co-authored-by: Lars Göttgens <[email protected]> * Update src/Serialization/serializers.jl Co-authored-by: Lars Göttgens <[email protected]> * Update src/Serialization/main.jl Co-authored-by: Lars Göttgens <[email protected]> * small fix still need to move the check * added check inside save_attrs * offline review * fixed save docs --------- Co-authored-by: Marius <[email protected]> Co-authored-by: Lars Göttgens <[email protected]>
- Loading branch information
1 parent
1900795
commit d673068
Showing
5 changed files
with
143 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.