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.
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
[Wip] Refactor "src/dsl.jl" file #985
base: master
Are you sure you want to change the base?
[Wip] Refactor "src/dsl.jl" file #985
Changes from 22 commits
efd44be
d2985c0
b06068f
5cc8f41
15273f1
b105b3e
1324428
71c9b5c
9ab9290
d45f0a7
b6ba044
cdac225
ea9aae3
7084133
a6b4c3a
160668f
9c265ee
34fc2c0
e9fa7ba
37ea1d9
87464f7
8156eca
fba3f5e
50f8f82
4e720ee
a1e967a
fadeb67
b235784
18fcbf1
9230667
78ca087
9d62c28
9a928fe
53a6254
27f7add
99e54d2
7ec7383
5f35480
292da20
2902101
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
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.
Again, the only time this function is issued it don't actually have any use. Old remnant and thus removed.
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.
Now only used in one place, there implemented directly.
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.
Helper function for handling error checks across multiple options.
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.
adapted to the new
make_reaction_system
function (which won't generate names for the user)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.
We can discuss this one, but what it actually does is kind of funny. It basically takes the internal function and evaluates it in the current scope somehow. However, when we have clarified the macro output to make it easier to read, e.g. putting
in the macro output quote and then use
we get the trouble that
observed
overwritesobserved
which is an exported function. Now the test is kind of artificial, so Catalyst works perfectly even if this generates an error, and it makes e.g.@macroexpand
a bit easier to use. The contrary argument for keeping this is that if one wants to copy and evaluate the code then one must modify. Right now I removed the test, but we can discuss.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 was never supposed to be a
LoadError
in the first place. There was a variable in theerror
statement that was undeclared, so that yielded anLoadError
, which was not the true error.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.
WHen I remade how the macor inputs are handled at the top level (nothing, name, reactions, name + reactions) I wanted to add some tests that all of this works for all cases and both macros.
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.
new test