open-AIMS / ADRIA.jl

ADRIA: Adaptive Dynamic Reef Intervention Algorithms. A multi-criteria decision support platform for informing reef restoration and adaptation interventions.
MIT License
12 stars 5 forks source link

Error when calculating total cover #855

Open VHallerBull opened 5 hours ago

VHallerBull commented 5 hours ago

@DanTanAtAims The new setup of the CScapeResultsSet (most up to date code) is now causing an issue when I try to calculate the total_cover using the following function https://github.com/open-AIMS/ADRIA.jl/blob/c7334e5f0c2a8d3dcdf11af6f59824d42a954581/src/metrics/scenario.jl#L43

The error I receive is image

I receive this error both on the HPC and locally

ConnectedSystems commented 4 hours ago

Hi Vanessa, can we have a MWE please?

VHallerBull commented 4 hours ago

What is MWE?

ConnectedSystems commented 4 hours ago

Minimum Working Example

Essentially a copy of the code that reproduces the problem that we can just copy/paste and test on our end

ConnectedSystems commented 4 hours ago

Like how I did here, showing I couldn't reproduce your earlier issue:

https://github.com/open-AIMS/ADRIA.jl/issues/842#issue-2506531885

VHallerBull commented 4 hours ago

using JLD2 rs=load_object(raw"Set2Test3_rs.jld2") stac = ADRIA.metrics.scenario_total_cover(rs)

[Uploading Set2Test3_rs.zip…]()

VHallerBull commented 4 hours ago

Set2Test3_rs.zip

ConnectedSystems commented 4 hours ago

FYI @VHallerBull

https://github.com/open-AIMS/ADRIA.jl/issues/842#issuecomment-2330425216

https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax