Skip to content

Commit

Permalink
tidy formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
PatBall1 committed Oct 1, 2023
1 parent 401df07 commit d9073dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion detectree2/models/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
from shapely.geometry import Polygon, box, shape
from shapely.ops import orient

# Type aliases definitions
Feature = Dict[str, Any]
GeoFile = Dict[str, Union[str, Dict[str, str], List[Feature]]]

def polygon_from_mask(masked_arr):
"""Convert RLE data from the output instances into Polygons.
Expand Down Expand Up @@ -182,7 +185,7 @@ def project_to_geojson(tiles_path, pred_fold=None, output_fold=None, multi_class
},
},
"features": [],
} # type: Dict[str, Union[str, Dict[str, Any], List[Dict[str, Any]]]]
} # type: GeoFile

# load the json file we need to convert into a geojson
with open(filename, "r") as prediction_file:
Expand Down

0 comments on commit d9073dc

Please sign in to comment.