skip wham if already exists
This commit is contained in:
@@ -3,4 +3,4 @@ from .runner import UmbrellaRunner
|
||||
from .wham2d import WHAM2DRunner
|
||||
|
||||
__all__ = ['AdaptiveUmbrella']
|
||||
__version__ = "0.3.11"
|
||||
__version__ = "0.3.12"
|
||||
|
||||
@@ -67,7 +67,9 @@ class WHAM2DRunner(UmbrellaRunner):
|
||||
|
||||
def run_wham2d(self, metafile_path, output_path):
|
||||
""" Runs wham-2d with the given parameters. See http://membrane.urmc.rochester.edu/sites/default/files/wham/doc.html """
|
||||
|
||||
if os.path.exists(output_path):
|
||||
print(f"skipping wham, {output_path} already exists.")
|
||||
return
|
||||
|
||||
borders = self.get_wham_borders()
|
||||
cmd = "{exec} Px={px} {min_x} {max_x} {frames_x} Py={py} {min_y} {max_y} {frames_y} {tol} {temperature} 0 {metafile} {outfile} {mask}".format(
|
||||
|
||||
Reference in New Issue
Block a user