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

Fn-Preprocessing #602

Merged
merged 6 commits into from
Oct 31, 2023
Merged

Fn-Preprocessing #602

merged 6 commits into from
Oct 31, 2023

Conversation

Free-Quarks
Copy link
Collaborator

This adds a util function to the REST API that takes in a function network and checks for all known bugs that can cause a deserialization error downstream. It then addresses the bugs in a generic fashion to allow serialization (although the FN is not correct, just digestible). It also outputs a log which contains every bug it has found and recording the type of bug and where the bug is inside the FN.

I call this FN-Preprocessing on the FN's generated in the larger workflows as well.

I also setup some error handling incase the dynamics could not be parsed in code2amr. Returning a blank/default AMR instead of a crash.

@Free-Quarks Free-Quarks marked this pull request as ready for review October 30, 2023 17:07
Copy link
Contributor

@vincentraymond-ua vincentraymond-ua left a comment

Choose a reason for hiding this comment

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

@Free-Quarks - Thanks for making this, looks good to me!

@Free-Quarks Free-Quarks merged commit df3e789 into main Oct 31, 2023
8 checks passed
@Free-Quarks Free-Quarks deleted the lieffers/fn-preprocessing branch October 31, 2023 14:08
github-actions bot added a commit that referenced this pull request Oct 31, 2023
This adds a util function to the REST API that takes in a function
network and checks for all known bugs that can cause a deserialization
error downstream. It then addresses the bugs in a generic fashion to
allow serialization (although the FN is not correct, just digestible).
It also outputs a log which contains every bug it has found and
recording the type of bug and where the bug is inside the FN.

I call this FN-Preprocessing on the FN's generated in the larger
workflows as well.

I also setup some error handling incase the dynamics could not be parsed
in code2amr. Returning a blank/default AMR instead of a crash.

---------

Co-authored-by: Justin <[email protected]> df3e789
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