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

Camilos fixes #457

Closed
wants to merge 5 commits into from
Closed

Camilos fixes #457

wants to merge 5 commits into from

Conversation

caapontes
Copy link

-dump {time} in utils.py

@jmbuhr
Copy link
Collaborator

jmbuhr commented Jul 8, 2024

So this is based on #446. That was ready to be merged anyways, @ehhartmann , right?

@jmbuhr jmbuhr added the testthis label Jul 9, 2024
@ehhartmann
Copy link
Collaborator

Not ready, yet

@jmbuhr jmbuhr removed the testthis label Aug 20, 2024
for recipe in recipe_collection.recipes:
dt = [x[1] - x[0] for x in recipe.timespans]
reaction_probability.append(sum(np.multiply(dt, recipe.rates)))
t_interval = recipe.timespans[-1][-1] - recipe.timespans[0][0]
Copy link
Collaborator

Choose a reason for hiding this comment

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

This calculates the time between the first time this recipe becomes valid, and the last time it is valid. However, in between it might be invalid.
If the reaction probability should be scaled down by the time it should be ?

sum(dt)

@jmbuhr
Copy link
Collaborator

jmbuhr commented Nov 5, 2024

already integrated via other PRs

@jmbuhr jmbuhr closed this Nov 5, 2024
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.

4 participants