Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Run analysis > area exposed fails #1351

Open
wadhwamatic opened this issue Sep 25, 2024 · 2 comments
Open

[Bug]: Run analysis > area exposed fails #1351

wadhwamatic opened this issue Sep 25, 2024 · 2 comments
Assignees
Labels
bug Something isn't working triage to be triaged for next action

Comments

@wadhwamatic
Copy link
Member

What happened?

If I run an analysis of any hazard layer with the statistic 'area exposed', I get a failed to fetch error

Which country / deployment are you running?

any country on main. reproduced with jordan, mozambique and rbd

Add a screenshot (if relevant)

Screenshot 2024-09-25 at 14 52 54
@wadhwamatic wadhwamatic added bug Something isn't working triage to be triaged for next action labels Sep 25, 2024
@wadhwamatic
Copy link
Member Author

@ericboucher - I'm not sure when this was introduced. Is PR #1327 related? cc @gislawill

@gislawill
Copy link
Collaborator

I did some digging into this, here's what I found:

  • I wasn't able to run this locally in it's normal way because it requires storing cached files in AWS
    • So I bypassed the storing the cached files in AWS and just stored them locally in my filesystem
    • This mostly worked
  • Much later on in the functionality, I ran into an error in zonal_stats in which the "nodata" field in clean_stats_properties[f"{safe_prefix}nodata"] was not defined
    • This error occurred in all stats
    • The values in clean_stats_properties were {'stats_min': 1.0, 'stats_max': 2.0, 'stats_mean': 1.0845070422535212, 'stats_count': 71, 'stats_sum': 77.0, 'stats_std': 0.27814672757931685, 'stats_median': 1.0, 'stats_intersect_pixels': 71.0, 'stats_intersect_area': 6.6456}
  • I then commented out the "+ nodata" part of zonal stats (line 411 in zonal_stats) which allowed everything to run through through as expected for all stats (including area exposed)

So, not super conclusive. Leads me to believe there may be an issue related to when this "nodata" is defined vs when it is not.

I think next steps should be to look into the logs of the prism server to see if there is a specific error message that can give better direction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage to be triaged for next action
Projects
None yet
Development

No branches or pull requests

3 participants