Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v.stream.inbasin: Modernize interface, fix for v8 #935

Merged
merged 1 commit into from
Jul 29, 2023

Conversation

wenzeslaus
Copy link
Member

  • Changes x_outlet and y_outlet to single coordinates standard option which is recognized by GUI and user can click to get coordinates there. Call in Python has less parameters and same readability (x,y).
  • Makes coordinates optional which seems to be the original intention.
  • Uses rules to decide about valid options instead of custom if statements.
  • Updates interfacing with numpy to Python 3.
  • Adds more recent reference.
  • Describes stream input more.
  • Adds tests.

- Changes x_outlet and y_outlet to single coordinates standard option which is recognized by GUI and user can click to get coordinates there. Call in Python has less parameters and same readability (x,y).
- Makes coordinates optional which seems to be the original intention.
- Uses rules to decide about valid options instead of custom if statements.
- Updates interfacing with numpy to Python 3.
- Adds more recent reference.
- Describes stream input more.
- Adds tests.
Copy link
Contributor

@awickert awickert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks to @wenzeslaus, especially for knowing how to appropriately interface this to the various GRASS GIS interface options. Streamlining the code is also much appreciated!

@awickert awickert merged commit bfd8226 into OSGeo:grass8 Jul 29, 2023
7 checks passed
@wenzeslaus wenzeslaus deleted the v_stream_inbasin-to-v8 branch July 31, 2023 14:18
cwhite911 pushed a commit to cwhite911/grass-addons that referenced this pull request Sep 19, 2023
- Changes x_outlet and y_outlet to single coordinates standard option which is recognized by GUI and user can click to get coordinates there. Call in Python has less parameters and same readability (x,y).
- Makes coordinates optional which seems to be the original intention.
- Uses rules to decide about valid options instead of custom if statements.
- Updates interfacing with numpy to Python 3.
- Adds more recent reference.
- Describes stream input more.
- Adds tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants