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

Add conservedquantity metadata #853

Merged
merged 5 commits into from
May 21, 2024
Merged

Conversation

TorkelE
Copy link
Member

@TorkelE TorkelE commented May 20, 2024

Add a conservedquantity = true metadata to all conserved quantity parameters. These permits e.g. detecting these in e.g. StrucuralIdentifiability outputs, and eliminating them from here.

Symbolics.option_to_metadata_type(::Val{:conservationquantity}) = ConservationQuantity

"""
isconservationquantity(p)
Copy link
Member

Choose a reason for hiding this comment

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

Why not just isconserved? Seems shorter and clear.

src/network_analysis.jl Outdated Show resolved Hide resolved
src/network_analysis.jl Outdated Show resolved Hide resolved
Copy link
Member

@isaacsas isaacsas left a comment

Choose a reason for hiding this comment

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

Just a few comments on naming, happy for you to merge after addressing them.

TorkelE and others added 5 commits May 21, 2024 10:41
Co-authored-by: Sam Isaacson <isaacsas@users.noreply.github.com>
Co-authored-by: Sam Isaacson <isaacsas@users.noreply.github.com>
@TorkelE TorkelE force-pushed the new_conserved_quantities_metadata branch from 73f4682 to 334ccb2 Compare May 21, 2024 14:41
@TorkelE TorkelE merged commit a649acc into master May 21, 2024
5 of 6 checks passed
@TorkelE TorkelE deleted the new_conserved_quantities_metadata branch May 21, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants