Amset interpolation convergence - #1537
Open
Jackbt21 wants to merge 11 commits into
Open
Conversation
introduces wildcards into renaming of files to match standard amset format transport_*.json* currently looks to rename transport.json which does not exist.
Reorganize import statements and remove unused imports.
Add test for copy_amset_files function handling transport files.
Updated test to handle gzipped transport files
Member
|
@utf can you please check? |
…Jackbt21/atomate2 into Amset_interpolation_Convergence
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
copy_amset_files()currently looks for a file namedtransport.json. AMSET writes the transport files astransport_{mesh}.jsonby default. Because that file is never found,transport.prev.jsonis never created, socheck_converged()has nothing to compare against on a resubmission, leaving jobs resubmitting weather the interpolation factor is converged or not.Summary
transport.jsonwith the wildcard patterntransport_*.json*, matching the default file naming.rename_files()doesn't support wildcards, so the transport file is renamed with a plain pathlib glob + rename instead of going throughrename_files().allow_missing=Trueintocopy_files, replacing what was inrename_files, to avoid crashing on the first run when no previous file exists.