Skip to content

Commit

Permalink
added geometry column to the test assert
Browse files Browse the repository at this point in the history
  • Loading branch information
bw4sz committed Sep 11, 2024
1 parent c273bd9 commit 46d6893
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion docs/getting_started/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ plot_results(boxes, root_dir=os.path.dirname(raster_path))

We encourage users to try out a variety of patch sizes. For 0.1m data, 400-800px per window is appropriate, but it will depend on the density of tree plots. For coarser resolution tiles, >800px patch sizes have been effective, but we welcome feedback from users using a variety of spatial resolutions.


### Sample package data

DeepForest comes with a small set of sample data that can be used to test out the provided examples. The data resides in the DeepForest data directory. Use the `get_data` helper function to locate the path to this directory, if needed.
Expand Down
4 changes: 2 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def test_predict_tile(m, raster_path):

assert isinstance(prediction, pd.DataFrame)
assert set(prediction.columns) == {
"xmin", "ymin", "xmax", "ymax", "label", "score", "image_path"
"xmin", "ymin", "xmax", "ymax", "label", "score", "image_path","geometry"
}
assert not prediction.empty

Expand Down Expand Up @@ -621,6 +621,6 @@ def test_predict_tile_with_crop_model(m, config):
# Assert the result
assert isinstance(result, pd.DataFrame)
assert set(result.columns) == {
"xmin", "ymin", "xmax", "ymax", "label", "score", "cropmodel_label",
"xmin", "ymin", "xmax", "ymax", "label", "score", "cropmodel_label","geometry",
"cropmodel_score", "image_path"
}

0 comments on commit 46d6893

Please sign in to comment.