Skip to content

bug: algorithm crash AttributeError: 'NoneType' object has no attribute 'empty' #280

@garobrik

Description

@garobrik
Traceback #10, occurred 1 times. Example pedon: 12652, lat: 31.8872223, lon: -101.9194412
  Traceback (most recent call last):
    File "/home/roux/projects/terraso/soil-id-algorithm/soil_id/tests/us/generate_bulk_test_results.py", line 53, in <module>
      lat = pedon["y"].values[0]
                        ~~~~~^^^
    File "/home/roux/projects/terraso/soil-id-algorithm/soil_id/us_soil.py", line 95, in list_soils
      mucompdata_pd = extract_mucompdata_STATSGO(lon, lat)
    File "/home/roux/projects/terraso/soil-id-algorithm/soil_id/utils.py", line 1402, in extract_mucompdata_STATSGO
      if not mucompdata_out.empty:
             ^^^^^^^^^^^^^^^^^^^^
  AttributeError: 'NoneType' object has no attribute 'empty'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions