Skip to content

Commit

Permalink
read grid file path from recipe if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
mogres committed Oct 18, 2023
1 parent aae7ed1 commit 9667485
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cellpack/autopack/Environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9667485

Please sign in to comment.