File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,10 @@ passing.
125125With ` grass.tools ` , numpy arrays can be passed as raster inputs (the array
126126is written to a temporary raster matching the computation region) and
127127requested as outputs using the ` parameter=np.array ` pattern (e.g.,
128- ` depth=np.array ` ).
128+ ` depth=np.array ` ). For tools that read from stdin (e.g., ` r.in.ascii ` ),
129+ pass an ` io.StringIO ` object as the parameter value (e.g.,
130+ ` input=StringIO(ascii_text) ` ); ` Tools ` converts it to ` - ` and pipes the
131+ content automatically.
129132
130133Test data can be created in several ways: ` r.mapcalc ` raster algebra
131134expressions (e.g., ` elevation = 6 - col() ` ), numpy arrays, GRASS tools
@@ -229,7 +232,9 @@ miss.
229232
230233### Comments (all languages)
231234
232- - No decorative comment banners or dividers (e.g., ` # ---- Section ---- ` ).
235+ - No decorative comment banners or dividers (e.g., ` # ---- Section ---- ` )
236+ except the top-level comment in tools with author and copyright in Python
237+ scripts.
233238- No double space after a sentence-ending period.
234239- Write full sentences with proper capitalization, not stubs or all-lowercase
235240 fragments.
You can’t perform that action at this time.
0 commit comments