Skip to content

doc: Fix bugs in Python introduction and interfaces overview examples - #7359

Merged
petrasovaa merged 2 commits into
OSGeo:mainfrom
wenzeslaus:fix-python-intro-and-interfaces-overview-examples
May 14, 2026
Merged

petrasovaa merged 2 commits into
OSGeo:mainfrom
wenzeslaus:fix-python-intro-and-interfaces-overview-examples

Conversation

@wenzeslaus

Copy link
Copy Markdown
Member

grass.tools snippets:

  • Drop the trailing underscore from r_import_.
  • Fix syntax errors in the v_info and g_region calls.

PyGRASS snippets:

  • Use consistent variable names and the correct existence-check method in the Vector example.
  • Import VectorTopo where it is used.
  • Use the correct method names, attribute accessor, and length comparison in the line-filtering example.
  • Add the missing random module import and correct the uniform argument order.
  • Match the second SQL output example to its query.
  • Fix typos.

All snippets were tested against the nc_basic_spm_grass7 sample dataset with Claude extracting the examples and running them.

grass.tools snippets:

- Drop the trailing underscore from r_import_.
- Fix syntax errors in the v_info and g_region calls.

PyGRASS snippets:

- Use consistent variable names and the correct existence-check method in the Vector example.
- Import VectorTopo where it is used.
- Use the correct method names, attribute accessor, and length comparison in the line-filtering example.
- Add the missing random module import and correct the uniform argument order.
- Match the second SQL output example to its query.
- Fix typos.

All snippets were tested against the nc_basic_spm_grass7 sample dataset with Claude extracting the examples and running them.
@github-actions github-actions Bot added docs markdown Related to markdown, markdown files labels May 2, 2026
@petrasovaa
petrasovaa enabled auto-merge (squash) May 14, 2026 16:38
@petrasovaa
petrasovaa merged commit f808a6d into OSGeo:main May 14, 2026
21 checks passed
@github-actions github-actions Bot added this to the 8.6.0 milestone May 14, 2026
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Jul 7, 2026
…OSGeo#7359)

grass.tools snippets:

- Drop the trailing underscore from r_import_.
- Fix syntax errors in the v_info and g_region calls.

PyGRASS snippets:

- Use consistent variable names and the correct existence-check method in the Vector example.
- Import VectorTopo where it is used.
- Use the correct method names, attribute accessor, and length comparison in the line-filtering example.
- Add the missing random module import and correct the uniform argument order.
- Match the second SQL output example to its query.
- Fix typos.

All snippets were tested against the nc_basic_spm_grass7 sample dataset with Claude extracting the examples and running them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs markdown Related to markdown, markdown files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants