ConservationInternational / cplus-plugin

QGIS plugin for using CPLUS framework in effective land-use planning
https://conservationinternational.github.io/cplus-plugin/
GNU General Public License v3.0
3 stars 6 forks source link

Testing: Deliverable 2 #540

Open EliVolsch opened 2 days ago

EliVolsch commented 2 days ago

Test plugin with the following scenario on widows environment: Video

Scenario Specs:

N -31,027476821, E 29,498365781, S1 -31,46289226, W29,015027381 Area Layers Eastern Cape

Settings:

The coefficient for carbon layers = 1 Pathways suitability index = 1 Snapping (none) sieve = Threshold 26 Mask Layer = Mask test. shp

NCS

Activities:

Agroforestry ( Agroforestry_Priority_norm_1.tif + Alien_Plant_Reoval_Priority_Norm_1.tif ) Alinen Plant Removal (Alien_Plant_Removal_Priority_norm_1.tif + Fire_Management_Priority_norm_1.tif) Fire management ( Fire_Management_Priority_norm_1.tif )

PWL

Biodiversity_1.tif (5)

Walkthrough:

EliVolsch commented 1 day ago

Date: 20 September 2024
Deliverable: Deliverable 2
Tester: Eli
Plugin documentation: Link
Video: Link
Test system specifications:
OS: Windows 10
QGIS: 3.34.9-Prizren
image
Test Description: Test the plugin in Windows with the parameters set out in the workflow video. Create a detailed report on the findings of the test and pass/success rate. Report on GitHub ticket.

Click on images for an enlarged view

TestNo Description Status Notes/Screenshots
1 Preamble: Install Plugin Good
I was able to successfully and easily install the CPLUS plugin using the steps outlined in the video. These steps also correlate with the steps outlined in the documentation and GitHub repository. image
2 Scenario 1: Local Scenario Good
Test a local scenario with local layers.

Settings: Settings have been set up as per the video instructions.
NCS Pathways/Activities: All NCS Pathways and Activities set up as per video instructions.
PG/PWL: Biodiversity set up as per video instructions.

Processing: Processing completed successfully. Report and outputs generated.
Output:
image
3 Scenario 2: Online scenario with local layers Warning
Test online scenario processing with local layers. Register: Was able to register with trends.earth and log in successfully and without incident.
Scenario variables: No changes were made to the scenario variables. In step 4, process scenario online was selected.

Processing: Processing the scenario online returned an error on the first try. An email report was received confirming that the processing had completed. No report was generated, and the resulting processed layer was not as expected. See error
Error:
image
Process 2nd try: As a precautionary measure, I ran the processing for a second time without making any changes to the variables. This time the processing completed in the expected manner and all output layers and reports were generated. I noted that the layer is identical in result to that of Scenario 1. Output: image
4 Scenario 3: Online processing with online layers Good
Test processing a scenario online with the default online layers.

Settings: Settings have been set up as per the video instructions using online defaults.
NCS Pathways/Activities: All NCS Pathways and Activities set up as per video instructions using online defaults.
PG/PWL: Biodiversity set up as per video instructions using online defaults.
Processing: Processing completed successfully. An email was received to notify me that the scenario had successfully completed processing. As displayed in the video, all previously processed scenarios were added to the log and were accessible once the log was refreshed.

Output Differences: I noticed a difference in the output between the previous two tests and the online processed layer. The differences are most likely due to small differences in the layers between the online defaults and the local sets. Importantly, the sieving function is working and produced an expected result.

Output: image

Output Differences:
image

Error Log:

2024-09-20T13:04:13     INFO    Status-Code: 200
2024-09-20T13:04:45     WARNING    Traceback (most recent call last):
              File "C:\Users/volsc/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cplus_plugin\api\scenario_task_api_client.py", line 171, in run
              self.__execute_scenario_analysis()
              File "C:\Users/volsc/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cplus_plugin\api\scenario_task_api_client.py", line 671, in __execute_scenario_analysis
              self._retrieve_scenario_outputs(scenario_uuid)
              File "C:\Users/volsc/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cplus_plugin\api\scenario_task_api_client.py", line 831, in _retrieve_scenario_outputs
              updated_scenario, scenario_result = self.fetch_scenario_output(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "C:\Users/volsc/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cplus_plugin\api\base.py", line 184, in fetch_scenario_output
              urls_to_download = [urls_to_download[idx] for idx in invalid_indexes]
              ~~~~~~~~~~~~~~~~^^^^^
             IndexError: list index out of range

2024-09-20T13:04:45     WARNING    Problem executing scenario analysis in the server side: list index out of range

2024-09-20T13:04:45     INFO    Error from task scenario task list index out of range
2024-09-20T13:04:45     INFO    Cancel scenario 84049604-02cd-40ce-8a33-a6596484f9b7
2024-09-20T13:04:45     INFO    Problem in running scenario analysis: list index out of range
2024-09-20T13:04:45     INFO    Main task terminated
2024-09-20T13:07:23     INFO    Problem cancelling task, wrapped C/C++ object of type ScenarioAnalysisTaskApiClient has been deleted
EliVolsch commented 1 day ago

@zamuzakki @amyburness Please review.