Skip to content

local variable 'geometry' referenced before assignment #149

Description

@crawld

i'm getting the follow error with 0.8.2:

  File "/igniter/./app/app.py", line 79, in create
    unit = dt.BurnUnit.from_json(request.unit, request.firing_direction)
  File "/usr/local/lib/python3.10/dist-packages/driptorch/unit.py", line 80, in from_json
    polygon = read_geojson_polygon(geojson)
  File "/usr/local/lib/python3.10/dist-packages/driptorch/io.py", line 182, in read_geojson_polygon
    return geometry
UnboundLocalError: local variable 'geometry' referenced before assignment

the burn unit i give to DT is a union of Whale Pasture Main and Whale Pasture West in the attached geojson.

WillametteValley.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions