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

Add inplace flag to select whether to adjust entries in place #2841

Merged
merged 5 commits into from Feb 12, 2023

Conversation

peikai
Copy link
Contributor

@peikai peikai commented Feb 12, 2023

With regard to the discussion in #2832, this PR is submitted to avoid always adjusting entries in place.

  • A flag inplace is added into process_entries method for several compatibility schemes, including Compatibility(), MaterialsProjectDFTMixingScheme, and MaterialsProjectAqueousCompatibility. If inplace = False, entries will be processed on a copy.

  • Corresponding unittests have also been added.

@janosh
Copy link
Member

janosh commented Feb 12, 2023

@peikai Really nice work! Thanks for adding tests. 👍

@janosh janosh enabled auto-merge (squash) February 12, 2023 16:41
@janosh janosh merged commit 9a785ff into materialsproject:master Feb 12, 2023
@peikai
Copy link
Contributor Author

peikai commented Feb 13, 2023

Great 👏

@peikai peikai deleted the EntriesCopy branch February 13, 2023 06:43
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.

None yet

2 participants