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

Set default dmin to None in load_materials_hdf5() #428

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

psavery
Copy link
Collaborator

@psavery psavery commented Apr 12, 2022

For the dmin argument, Material.__init__() treats None and
Material.DFLT_DMIN differently. If it is None, then the dmin is read
from the HDF5 file if available. However, if it is not None, as was
the case before, then the dmin will not be read from the HDF5 file.

Default it to None in load_materials_hdf5() so that it will be read
from the HDF5 file.

Fixes: HEXRD/hexrdgui#1186

For the dmin argument, `Material.__init__()` treats `None` and
`Material.DFLT_DMIN` differently. If it is `None`, then the dmin is read
from the HDF5 file if available. However, if it is not `None`, as was
the case before, then the dmin will not be read from the HDF5 file.

Default it to `None` in `load_materials_hdf5()` so that it will be read
from the HDF5 file.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Copy link
Member

@saransh13 saransh13 left a comment

Choose a reason for hiding this comment

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

LGTM.

@psavery psavery merged commit 33db1b8 into HEXRD:master Apr 19, 2022
@psavery psavery deleted the load-materials-fix-dmin branch April 19, 2022 18:54
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.

Materials setting are not persistent in state save
2 participants