MathieuChailloux / BioDispersal

QGIS plugin to compute ecolgical continuities
GNU General Public License v3.0
7 stars 1 forks source link

Missing baseConfig.ini file when running Circuitscape algs #32

Open mjmolivo opened 4 months ago

mjmolivo commented 4 months ago

Hello,

I followed your tutorial for modeling landscape connectivity with Biodispersal (https://www.youtube.com/watch?v=yc9IjOSpi6Q) But when I launch the algorithm "Random start points" on my friction layer and habitat patches, this message appears in the log :

Traceback (most recent call last): File "C:\Users/utilisateur/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\BioDispersal\algs\circuitscape_algs.py", line 259, in processAlgorithm fin = open(base_config_file,"rt") FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users/utilisateur/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\BioDispersal\algs\baseConfig.ini'

I tried to uninstall/reinstall the extension on QGIS (v3.28.8), the same message shows up. I installed Circuitscape on Julia (1.9.4), still shows up. My OS : Windows 10 Pro

Do you know how can I solve this problem ?

Thanks

MathieuChailloux commented 4 months ago

This is a indeed a bug. Can you copy following file into directory C:\Users\UserName\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\BioDispersal\algs : https://we.tl/t-3zt2RZDRIT

Then relaunch algorithm

Regards

mjmolivo commented 4 months ago

Thanks for your reply, I just relaunched the algorithm with the wetransfer file and it seems to work pretty well.

I think there's another problem once my random start points are generated into my "launch" folder. When I try "Aggregates Circuitscape results", I have now this :

Inconsistent number of maps : 0 current maps vs 10 start points layers Execution failed after 0.03 secondes

I checked my "launch" folder and everything should be ok (picture below)

launch

Is there something I missed in the previous processes ?

Thanks

MathieuChailloux commented 4 months ago

You are missing the actual Circuitscape launches :-) The algorithm prepare a Julia script calling Circuitscape (see 1m40s in Tutorial). You have to launch this script from Julia interpretor (download it if necessary). THEN you will be able to agregate results.

mjmolivo commented 4 months ago

Thanks, I had to change the output files of the .ini in my folder to make the jl script work. I retried with only 5 points/launches and I have now 9 files into the InteropCircuitscapeBO folder, but the Aggregate Circuitscape results alg keeps telling me I have unconsistent number of maps (1 current maps vs 5 start points layers), still no results.