From 966748562ef94aac96dd4012dce078f6c7ba7d6e Mon Sep 17 00:00:00 2001 From: Saurabh Mogre Date: Wed, 18 Oct 2023 10:25:13 -0700 Subject: [PATCH] read grid file path from recipe if provided --- cellpack/autopack/Environment.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cellpack/autopack/Environment.py b/cellpack/autopack/Environment.py index 9545e614..e50b18b0 100644 --- a/cellpack/autopack/Environment.py +++ b/cellpack/autopack/Environment.py @@ -156,6 +156,8 @@ 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: + 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