generated from AlgebraicJulia/AlgebraicTemplate.jl
-
Notifications
You must be signed in to change notification settings - Fork 4
Paper Crunch Time/Docs Examples Updates #37
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
Merged
Merged
Conversation
This file contains hidden or 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
Co-authored-by: Sam Cohen <samuelcohen1@users.noreply.github.com> Co-authored-by: Trevor Gross <GrossTrevor@users.noreply.github.com>
Co-authored-by: Trevor Gross <GrossTrevor@users.noreply.github.com>
…imization.jl into paper-crunch-time
Added var declaration parsing functions to impliment. Move branch to fork Expr: Tuple correctly feeds into lower level parse function now... MLStyle dep added. Created an ADT file in which stores the Sheaf ADT using MLStyle and StructTypes. Wrote documentation for module identifier. Added complete documentation for the AST abstract type. Reordered file to run top-bottom. Resolved minor issues. Split product into two structs: restriction map and vertex stalk. Started building test file. Simplified ADT to structs and proved creation of first ADT cellular sheaf expression in tests. Created look up table for constructor. Tested Var Redeclaration Exception. Created helper function for throwing error when a linear relation contains an undefined var. Created test for exceptions when var is undeclared in relation. Modified dimension types to be integers. Edge stalk inference WIP. Tested that inconsistent edge stalks throw exceptions. Added error message for attempts to map wrong vertex stalk dimension. Created test for wrong mapping. created method for gathering vertex stalk dimensions. Created system to gather vertex and edge stalks Empty cellular sheaf can now be constructed. Created method of storing vertex + edge dimensions for construction. Starting on the parsing macro. Currently has errors Modified Judgements into declarations that can hold data. Modified minor test errors after judgement change. Completed parse declaration function and added parse equation to do. Fixed minor declaration parsing errors. Removed declaration debugging prints. Parse cellular sheaf now passes in escaped local vars and their names. Modified parse_cellular_sheaf signature to accept multiple local args. Cleaned up some error throwing. Local parameters are now added to the AST. Added root construction and constructor function. Added type checking to constructor. Moved Macro into seperate file that depends on ADT and CellularSheaves files. First sheaf construction via macro complete! Removed Debug statement. Seperated construct into cleaner functions. Added documentation to ADT file. Added documentation to macro function. Tested all exceptions in ADT testing file. Added more tests. Need to fix an error where you need to pass more than one arg into macro. Added exception for non matrices. Adjusted minor teesting errors within ADT file. Replaced accidental "Throws" w/ correct "Error" in Parser code. Modified isEqual Func Added support for singular arguments in macro. Added error exceprtion for using macro without arguments. Made minor test changes. Removed unneeded StructTypes. Literate File Created for Cellular Sheaf Macro Renamed Sheaf Macro Guide Literate/Generated. Modified Literate to remove unneeded example. Added CFG to parser API docs. Added Sheaf Error Types to the parser + constructor.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are a lot of changes in this PR, many of which are still going to be edited before merging.
This was created in the context of updating the docs after the paper has already been submitted so that a blog post can be created that links to updated docs pages. Only the five most recent commits (as of 4/10) are related to docs.
These are the two new docs files that we have created so far that contain examples based on those from the paper:
docs/literate/consensus_example.jl
docs/literate/flocking_example.jl
The initial conditions are not yet deterministic, this will be added soon.