Skip to content

Commit

Permalink
Merge pull request #566 from yuvipanda/injections
Browse files Browse the repository at this point in the history
Tell pangeo-forge-runner what to inject
  • Loading branch information
cisaacstern authored Oct 3, 2023
2 parents 7e34030 + 07da347 commit 12f963b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pangeo_forge_recipes/injections.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
def get_injection_specs():
return {
"StoreToZarr": {
"target_root": "TARGET_STORAGE",
},
"WriteCombinedReference": {
"target_root": "TARGET_STORAGE",
},
"OpenURLWithFSSpec": {"cache": "INPUT_CACHE_STORAGE"},
}
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,6 @@ line_length = 100
log_cli = false
timeout = 30
timeout_method = "signal"

[project.entry-points."pangeo_forge_runner.injection_specs"]
default_injections = "pangeo_forge_recipes.injections:get_injection_specs"

0 comments on commit 12f963b

Please sign in to comment.