babypoby commited on
Commit
3e64c5e
·
1 Parent(s): 8ee25f2

changed geojson structure and map should now work

Browse files
Files changed (2) hide show
  1. main.py +2 -2
  2. output/map.ipynb +2 -2
main.py CHANGED
@@ -9,9 +9,9 @@ def row_to_feature(row):
9
  feature = {
10
  "id": row["id"],
11
  "type": "Feature",
12
- "properties": {"Confidence_score": row["Confidence_score"]},
13
  "geometry": {"type": "Polygon", "coordinates": [row["coordinates"]]},
14
- "species": row['species']
15
  }
16
  return feature
17
  # [[first guess, prob],[second guess, prob],[third guess, prob]]
 
9
  feature = {
10
  "id": row["id"],
11
  "type": "Feature",
12
+ "properties": {"Confidence_score": row["Confidence_score"], "species": row['species']},
13
  "geometry": {"type": "Polygon", "coordinates": [row["coordinates"]]},
14
+
15
  }
16
  return feature
17
  # [[first guess, prob],[second guess, prob],[third guess, prob]]
output/map.ipynb CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8e257f2bdd28c0df4561a4695a82fc4ee69796d358d0f0d51b3ed407ab3893aa
3
- size 12819
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5b6cfb7ba3558833219807f340e1ed38f501f187368c2b0f500bcec3859bdd8
3
+ size 4402