file_barrier
Full name: ase2sprkkr.asr.core.utils.file_barrier
- ase2sprkkr.asr.core.utils.file_barrier(paths, world=None, delete=True)[source]
Context manager for writing a file.
After the with-block all cores will be able to read the file.
Do “with file_barrier([‘something.txt’]):”
This will remove the file, write the file and wait for the file.
- Parameters:
paths (List[str | Path])