diff --git a/cellpack/autopack/Environment.py b/cellpack/autopack/Environment.py index 9545e614..023d4dcb 100644 --- a/cellpack/autopack/Environment.py +++ b/cellpack/autopack/Environment.py @@ -156,6 +156,9 @@ def __init__(self, config=None, recipe=None): self.grid_file_out = ( f"{self.out_folder}/{self.name}_{config['name']}_{self.version}_grid.dat" ) + if recipe.get("grid_file_path") is not None: + 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