ConservationInternational / trends.earth

trends.earth - measure land change
http://trends.earth
GNU General Public License v2.0
109 stars 45 forks source link

Implement algorithms tab of the plugin dock #367

Closed ricardogsilva closed 3 years ago

ricardogsilva commented 3 years ago

The plugin dock has an Algorithms tab. This is meant to be the primary place where users can discover and run Trends.Earth algorithms.

geo-ldn-dock-algorithms-tab

As seen on the mockup above, the algorithms section shows a list of available algorithms which can be used for generating multiple SDG-related indicators. The list is organized with a three-level hierarchical structure:

Algorithms shall primarily be grouped in accordance with their respective SDG.

There may also be other groups, to show beta algorithms or some other related categories. These shall be shown last on the list, in order to indicate to the user that their relevance is lower

Clicking on one of the Run buttons shall open an additional dialogue that allows parametrizing and running the relevant algorithm (which will be the subject of additional issues)

Notes

luipir commented 3 years ago

FYI @ricardogsilva No algorithm class seems available in the plugin code. all algorithm presence in tight with he GUI or linked to a specific calculate_\<alg short name>.py code => proceed to create Algorithm class.

azvoleff commented 3 years ago

@luipir - correct, there isn't currently an algorithm class, though agree with this proposed improvement - sorely needed!

And apologies if I missed this elsewhere, but assume a dataset class will be added as well? This will be needed for #371, as well as for this class - I'd add a dependencies or similar property to the algorithm class that would allow specifying a list of dataset dependencies for a particular algorithm. Some of the current algorithms need to be run in sequence as they depend on outputs of prior algorithms