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

Save/load refinement statuses in the state file #1220

Merged
merged 1 commit into from
May 16, 2022

Conversation

psavery
Copy link
Collaborator

@psavery psavery commented May 16, 2022

These were previously not being saved/loaded because we are saving the
instrument config differently from how we do so with QSettings. In state
files, we are using hexrd's HEDMInstrument to write out the instrument
config, but this does not include refinement statuses.

This PR adds a property to HexrdConfig() to create/set a dict of
refinement statuses, and this dict is used to save/load the
refinement statuses from the state file.

Fixes: #1217

These were previously not being saved/loaded because we are saving the
instrument config differently from how we do so with QSettings. In state
files, we are using hexrd's HEDMInstrument to write out the instrument
config, but this does not include refinement statuses.

This PR adds a property to HexrdConfig() to create/set a dict of
refinement statuses, and this dict is used to save/load the
refinement statuses from the state file.

Signed-off-by: Patrick Avery <[email protected]>
@psavery psavery requested a review from cjh1 May 16, 2022 19:06
@psavery psavery merged commit 0372f93 into HEXRD:master May 16, 2022
@psavery psavery deleted the state-save-refinement-statuses branch May 16, 2022 20:32
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.

Refinement flags are not persistent in state save
2 participants