diff --git a/cellpack/autopack/Environment.py b/cellpack/autopack/Environment.py index e50b18b0..023d4dcb 100644 --- a/cellpack/autopack/Environment.py +++ b/cellpack/autopack/Environment.py @@ -157,7 +157,8 @@ def __init__(self, config=None, recipe=None): f"{self.out_folder}/{self.name}_{config['name']}_{self.version}_grid.dat" ) if recipe.get("grid_file_path") is not None: - self.grid_file_out = recipe["grid_file_path"] + if os.path.isfile(recipe["grid_file_path"]): + self.grid_file_out = recipe["grid_file_path"] should_load_grid_file = ( os.path.isfile(self.grid_file_out) and self.load_from_grid_file