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

Albrja/mic 5383/psimulate clock configuration #236

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

albrja
Copy link
Contributor

@albrja albrja commented Oct 4, 2024

Albrja/mic 5383/psimulate clock configuration

Updates how vivarium work horse gets number of simulation steps

Changes and notes

-Updates vivarium work horse method to get number of steps from InteractiveContext method

Testing

Successfully ran parallel simulation with custom clock

end_time = pd.Timestamp(**sim.configuration.time.end.to_dict())
step_size = pd.Timedelta(days=sim.configuration.time.step_size)
num_steps = int(math.ceil((end_time - start_time) / step_size))
num_steps = sim.get_number_of_steps(start_time)
Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't be providing start time to this method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But we have to get it from the Parallel sim context or the backups

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