-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
g.gui.gmodeler: add PyWPS export option #1919
Conversation
Figures containing screenshots of the Python editor should be updated - is there anyone who has the same visual as those that are already there? The GUI looks a bit different in my case and it would be nice to have the look more-or-less standardized (and I would like to avoid taking all the pictures again). @landam?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor manual fixes - the rest, I didn't check
Co-authored-by: Veronica Andreo <veroandreo@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- reorder buttons (combox on the left, refresh+save+run on the right
- update documentation (update + add new screenshots)
Looks nice process = Model()
processes = [Model()]
application = Service(processes) @pesekon2 Question: What is purpose of line
? |
Suggestion: line from pywps.app.Service import Service could be moved into |
Also consider improving comment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiny grammar fixes :)
Great, now only relevant output parameter is included: inputs.append(LiteralInput(
identifier="vbuffer1_distance",
title="Buffer distance along major axis in map units",
data_type="float",
default=1000))
outputs.append(ComplexOutput(
identifier="rslopeaspect4_slope",
title="Name for output slope raster map",
supported_formats=sup_formats,
default="slope")) I just wonder why there are so many empty lines. @pesekon2 I would suggest to keep it consistent (1/2 lines). Similarly here: return response
if __name__ == "__main__": |
@pesekon2 Unfortunately the process fails with: Traceback (most recent call last):
File "/home/martin/Downloads/pywps-flask-master/demo.py", line 53, in <module>
Model()
File "/home/martin/Downloads/pywps-flask-master/processes/pywps_grass_test.py", line 29, in __init__
outputs.append(ComplexOutput(
TypeError: __init__() got an unexpected keyword argument 'default' Tested with pywps versions 4.2.11 and 4.5.2. |
@landam According to the PyWPS documenatation, PyWPS 4.x does not support parameter |
Currently it's failing with File "/home/martin/src/grass/dist.x86_64-pc-linux-gnu/gui/wxpython/gmodeler/model.py", line 2837, in _write_input_outputs
self._write_input_output_object(
TypeError: WritePyWPSFile._write_input_output_object() missing 1 required positional argument: 'value' @pesekon2 Method |
@landam: Thanks for noticing that. The origin of this bug is actually sort of funny. The latest state of this PR wasn't cool enough according to the Black code style suppression, so I pushed a minimal reformatting commit 8868761. Apparently, it made the code stylish enough, but a small typo broke it to be unusable. (what to learn: test the code even after those stupid reformatting commits) Fixed in 0282c38. |
New tasks based on our testing
|
Solved in a249d85 |
Solved in b176b82 |
I tested sample model with pywps 4.5.2 and it works. |
@veroandreo Can we merge this PR? |
No description provided.