Skip to content

Amset interpolation convergence - #1537

Open
Jackbt21 wants to merge 11 commits into
materialsproject:mainfrom
Jackbt21:Amset_interpolation_Convergence
Open

Amset interpolation convergence#1537
Jackbt21 wants to merge 11 commits into
materialsproject:mainfrom
Jackbt21:Amset_interpolation_Convergence

Conversation

@Jackbt21

Copy link
Copy Markdown

copy_amset_files() currently looks for a file named transport.json. AMSET writes the transport files as transport_{mesh}.json by default. Because that file is never found, transport.prev.json is never created, so check_converged() has nothing to compare against on a resubmission, leaving jobs resubmitting weather the interpolation factor is converged or not.

Summary

  • Replaces the exact match lookup of transport.json with the wildcard pattern transport_*.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 through rename_files().
  • Added allow_missing=True into copy_files, replacing what was in rename_files, to avoid crashing on the first run when no previous file exists.

Jackbt21 and others added 9 commits August 25, 2026 15:18
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
@JaGeo

JaGeo commented Aug 28, 2026

Copy link
Copy Markdown
Member

@utf can you please check?

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.

2 participants