Skip to content

Commit fef7f9d

Browse files
Merge branch 'main' into add-jupyter-region-test
2 parents bbee79d + 1c48d13 commit fef7f9d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

AGENTS.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ passing.
125125
With `grass.tools`, numpy arrays can be passed as raster inputs (the array
126126
is written to a temporary raster matching the computation region) and
127127
requested 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

130133
Test data can be created in several ways: `r.mapcalc` raster algebra
131134
expressions (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.

0 commit comments

Comments
 (0)