This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from AnikaBettge/actinia_module_if
add filtering of varibales with default values
- Loading branch information
Showing
5 changed files
with
117 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"id": "default_value", | ||
"description": "test default value in actinia-gdi", | ||
"template": { | ||
"version": "1", | ||
"list": [ | ||
{ | ||
"module": "r.mapcalc", | ||
"id": "r.mapcalc_test", | ||
"inputs": [ | ||
{ | ||
"param": "expression", | ||
"value": "{{ output }} = {{ value|default(0.428) }}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
actinia_gdi/templates/pc_templates/examples/pc_default_value.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"list": [ | ||
{ | ||
"id": "g.region_red", | ||
"module": "g.region", | ||
"inputs": [ | ||
{ | ||
"param": "n", | ||
"value": "228527.25" | ||
}, | ||
{ | ||
"param": "s", | ||
"value": "215018.25" | ||
}, | ||
{ | ||
"param": "w", | ||
"value": "629980" | ||
}, | ||
{ | ||
"param": "e", | ||
"value": "644971" | ||
}, | ||
{ | ||
"param": "res", | ||
"value": "30" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "test_default_values", | ||
"module": "default_value", | ||
"inputs": [ | ||
{ | ||
"param": "output", | ||
"value": "test_defval" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "test_other_values", | ||
"module": "default_value", | ||
"inputs": [ | ||
{ | ||
"param": "output", | ||
"value": "test_val" | ||
}, | ||
{ | ||
"param": "value", | ||
"value": "5" | ||
} | ||
] | ||
} | ||
], | ||
"version": "1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters