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

Duration for PEtabEvent #98

Open
sebapersson opened this issue Oct 5, 2023 · 0 comments
Open

Duration for PEtabEvent #98

sebapersson opened this issue Oct 5, 2023 · 0 comments

Comments

@sebapersson
Copy link
Owner

Currently PEtabEvent looks like:

struct PEtabEvent
    condtion
    affect
    target
end

For certain application it would be nice to also add a duration field stating for how long an event is applied. For example;

PEtabEvent(t == 3, S, duration=20)

would mean that a new value is added to S at t == 3, and then in this case at t == 2 the effect is reversed. Would only be applicable for events triggered at a specific time point, and for application where a state/parameter is set to a specific value (e.g. if the affect is to complicated deriving the reverse affect is hard).

At a lower level, this would entail building another callback with the reverse effect (invert the affect field), which should be quite straightforward.

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

No branches or pull requests

1 participant