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

HOTFIX: Pause Resume #641

Closed
wants to merge 2 commits into from
Closed

HOTFIX: Pause Resume #641

wants to merge 2 commits into from

Conversation

BryanRumsey
Copy link
Contributor

No description provided.

@BryanRumsey BryanRumsey added this to the 1.6.6 milestone Nov 9, 2021
@BryanRumsey BryanRumsey requested a review from seanebum November 9, 2021 15:59
@BryanRumsey BryanRumsey self-assigned this Nov 9, 2021
@BryanRumsey BryanRumsey linked an issue Nov 9, 2021 that may be closed by this pull request
@@ -331,6 +331,8 @@ def _update_resume_data(self, resume: Results, simulation_data: "list[dict[str,
for entry_name, entry_data in simulation_data[-1].items():
# The results of the current simulation is treated as an "extension" of the resume data.
# As such, the new simulation output is formed by joining the two end to end.
if entry_name != "time":
entry_data = entry_data[:-1]
Copy link
Contributor

Choose a reason for hiding this comment

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

I did some testing with pause/resume models, and it showed that there was consistently a duplicate entry from the end time of the initial run to the "next step" of the resume run. This fix shaves the last data point off so that things line up, but I have proposed an alternate fix in #643 which eliminates the duplicate entries.

@briandrawert
Copy link
Member

Replaced by #643

@BryanRumsey BryanRumsey deleted the hotfix-pause-resume branch December 2, 2021 17:05
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.

pause resume plotting sometimes errors timespan
3 participants