schrodinger.seam.jobutils module¶
- schrodinger.seam.jobutils.register_all_files_as_job_output(func)¶
Decorator that registers all files, except jobserver files, in the cwd as output files after the function is run.
All output files are registered even when the function fails. This is useful for debugging.
(This decorator shouldn’t be used on multiple functions in the same job.)
- schrodinger.seam.jobutils.move_seam_dir_if_exists(seam_path: Optional[Union[str, Path]] = None) Optional[Path]¶
Moves the existing seam directory to a new location if it exists.
This is useful for avoiding conflicts with existing directories. If care is not taken to avoid these kinds of conflicts, two seam directories from different runs may end up merged together, which can make it subtly difficult to debug.