Skip to content

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

Open
wenzeslaus wants to merge 1 commit intoOSGeo:mainfrom
wenzeslaus:fix-python-intro-and-interfaces-overview-examples
Open

doc: Fix bugs in Python introduction and interfaces overview examples#7359
wenzeslaus wants to merge 1 commit intoOSGeo: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
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.

2 participants