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: algorithm crash "could not broadcast input array" #183

Open
shrouxm opened this issue Oct 8, 2024 · 0 comments
Open

bug: algorithm crash "could not broadcast input array" #183

shrouxm opened this issue Oct 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@shrouxm
Copy link
Member

shrouxm commented Oct 8, 2024

Site info

coordinates: -104.0161438,44.7777328
pedon key in test CSV file: 2340

traceback

Traceback (most recent call last):
  File "/home/roux/terraso/soil-id-algorithm/soil_id/tests/us/test_us.py", line 116, in test_with_real_data
    list_result = list_soils(lat=lat, lon=lon)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/roux/terraso/soil-id-algorithm/soil_id/us_soil.py", line 1098, in list_soils
    aws_PIW90, var_imp = soil_sim(muhorzdata_pd)
                         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/roux/terraso/soil-id-algorithm/soil_id/soil_sim.py", line 256, in soil_sim
    simulate_correlated_triangular(
  File "/home/roux/terraso/soil-id-algorithm/soil_id/utils.py", line 1867, in simulate_correlated_triangular
    samples[condition, i] = a + np.sqrt(u[condition] * (c - a) * (b - a))
    ~~~~~~~^^^^^^^^^^^^^^
ValueError: could not broadcast input array from shape (1,10) into shape (1,3)
@shrouxm shrouxm added the bug Something isn't working label Oct 8, 2024
@shrouxm shrouxm added this to LandPKS Oct 8, 2024
@github-project-automation github-project-automation bot moved this to Todo in LandPKS Oct 8, 2024
@shrouxm shrouxm changed the title bug: algorithm crash "could not broadcast input array bug: algorithm crash "could not broadcast input array" Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants