Skip to content

Commit

Permalink
update simple example
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Feb 1, 2019
1 parent f49930c commit 4046a5a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/source/ideas/pywps_profiles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ https://www.ianlewis.org/en/mixins-and-python

See notebook examples how it could be used with PyWPS:

https://github.com/cehbrecht/jupyterlab-notebooks/blob/master/pywps-profiles/notebooks/process_mixin.ipynb
https://nbviewer.jupyter.org/github/bird-house/notebooks/blob/master/pywps-profiles/notebooks/process_mixin.ipynb

Python Decorators
-----------------
Expand All @@ -43,11 +43,11 @@ https://krzysztofzuraw.com/blog/2016/python-class-decorators.html

Here are some notebook examples how it could be used with PyWPS:

* notebooks: https://github.com/cehbrecht/jupyterlab-notebooks/blob/master/pywps-profiles/notebooks/process_decorator.ipynb
* notebooks: https://nbviewer.jupyter.org/github/bird-house/notebooks/blob/master/pywps-profiles/notebooks/process_decorator.ipynb
* Emu subset with ESGF-API: https://github.com/bird-house/emu/blob/esgfwps/emu/processes/wps_esgf_subset.py

Simple Alternative: Shared Profile Classes
------------------------------------------
Simple Alternative: Shared Profile Module/Class
-----------------------------------------------

Relatively few developers will be familiar with the concepts of *mixins* and *decorators*.
In other words, it might look a bit too much like magic.
Expand All @@ -60,5 +60,9 @@ See for example:

https://github.com/Ouranosinc/raven/blob/master/raven/processes/wps_regionalisation.py

Here is a notebook showing this approach which includes also an optional decorator:

https://nbviewer.jupyter.org/github/bird-house/notebooks/blob/master/pywps-profiles/notebooks/process_simple_profile_and_decorator.ipynb


.. _WPS profile: http://geoprocessing.info/wpsdoc/FAQ#profile

0 comments on commit 4046a5a

Please sign in to comment.