Skip to content

Commit 87df72c

Browse files
authored
Merge pull request #565 from maps-as-data/fix-example-notebooks
Fix bug raised by example notebooks
2 parents 9fa8d5c + 698774a commit 87df72c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
Check-Changelog:
1111
name: Check Changelog Action
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-latest
1313
steps:
1414
- uses: tarides/changelog-check-action@v2
1515
with:

mapreader/spot_text/runner_base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,8 @@ def explore_predictions(
711711

712712
preds_df = self._dict_to_dataframe(self.geo_predictions)
713713
preds_df.drop(
714-
columns=["pixel_geometry"], inplace=True
715-
) # drop pixel_geometry since we can't have two polygon columns
714+
columns=["pixel_geometry", "pixel_line", "line"], inplace=True
715+
) # drop other geometry since we can't have more than one geometry columns
716716

717717
return preds_df[preds_df["image_id"] == parent_id].explore(
718718
tiles=tiles,
@@ -1163,8 +1163,8 @@ def explore_search_results(
11631163
geo_search_results = self._get_geo_search_results()
11641164
geo_df = self._dict_to_dataframe(geo_search_results)
11651165
geo_df.drop(
1166-
columns=["pixel_geometry"], inplace=True
1167-
) # drop pixel_geometry since we can't have two polygon columns
1166+
columns=["pixel_geometry", "pixel_line", "line"], inplace=True
1167+
) # drop other geometry since we can't have more than one geometry columns
11681168

11691169
return geo_df[geo_df["image_id"] == parent_id].explore(
11701170
tiles=tiles,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"pytest<9.0.0",
7272
"pytest-cov>=4.1.0,<6.0.0",
7373
"timm<1.0.0",
74-
"transformers<5.0.0, !=4.50.0",
74+
"transformers<4.51.3, !=4.50.0",
7575
"black>=23.7.0,<25.0.0",
7676
"flake8>=6.0.0,<8.0.0",
7777
],

0 commit comments

Comments
 (0)