Circuitscape / Circuitscape.jl

Algorithms from circuit theory to predict connectivity in heterogeneous landscapes
https://circuitscape.org
MIT License
128 stars 35 forks source link

What wrong by "output/mgNetworkVerify1.out" #307

Closed ammonite closed 3 years ago

ammonite commented 3 years ago

Sorry. It is my first trying on Circuitscape: julia> compute(".julia/packages/Circuitscape/Qr6wW/test/input/network/mgNetworkVerify1.ini") ERROR: SystemError: opening file "output/mgNetworkVerify1.out": No such file or directory ...... [10] compute(path::String) @ Circuitscape ~/.julia/packages/Circuitscape/Qr6wW/src/run.jl:17

Julia 1.6.1 Thank you very much!

vlandau commented 3 years ago

Hi @ammonite is this happening when you run Pkg.test("Circuitscape")?

ammonite commented 3 years ago

Hi @vlandau thanks a lot.

Test Summary: | Pass Total Double Precision Tests | 662 662 Testing Circuitscape tests passed

and always get similar error like this by start() function ---- no some files or directories.

vlandau commented 3 years ago

Can you please post the full output from the Julia terminal when you run start()? This will help us to debug. Are you manually setting this filepath .julia/packages/Circuitscape/Qr6wW/test/input/network/mgNetworkVerify1.ini as your input? This won't work for you since the filepaths in that INI are relative the this directory .julia/packages/Circuitscape/Qr6wW/test/ as opposed to you current active directory.

ranjanan commented 3 years ago

@ammonite if your tests pass, you may not be in the right directory while running that command. The following should work:

using Circuitscape
cd(joinpath(Base.pathof(Circuitscape), "..", "test"))
compute(joinpath("input", "network", "mgNetworkVerify1.ini")
ammonite commented 3 years ago

Thank you very much.@vlandau, @ranjanan, it work, cd to correct directory.

ranjanan commented 3 years ago

Thank you for confirming @ammonite, I'll close this then.