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

fix: avoid storage mat with empty change table #61

Merged
merged 1 commit into from
Oct 1, 2019

Conversation

ghost
Copy link

@ghost ghost commented Sep 27, 2019

This change fixes a bug where if there is no change table specified, an empty case_storage.mat file will be created and sent to the server (Issue #60). This was because we were wiping the storage entry in the grid object only if a change table existed but did not contain storage entries.

We are fixing this by always keeping the storage dict in the grid object, and inspecting the length of grid.storage['gen'] to see if there is any storage present or not to determine whether or not to create and send a storage.mat file.

@ghost ghost requested review from kasparm, rouille and BainanXia September 27, 2019 17:31
@rouille rouille force-pushed the empty_storage_mat_fix branch from 04f6d8d to 8860ede Compare September 27, 2019 18:01
Copy link
Collaborator

@rouille rouille left a comment

Choose a reason for hiding this comment

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

Looks good

@ghost ghost self-assigned this Sep 27, 2019
@rouille rouille merged commit 93c33e8 into develop Oct 1, 2019
@rouille rouille deleted the empty_storage_mat_fix branch October 1, 2019 17:42
@ghost ghost removed their assignment Oct 29, 2019
@ahurli ahurli mentioned this pull request Mar 11, 2021
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.

3 participants