Skip to content

Commit

Permalink
fix: testing for removed funcionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigaszi committed Nov 28, 2024
1 parent 5ac3620 commit df17d3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions mapswipe_workers/mapswipe_workers/utils/process_mapillary.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,11 @@ def coordinate_download(
downloaded_metadata.append(df)
if failed_row is not None:
failed_tiles.append(failed_row)

if len(downloaded_metadata):
downloaded_metadata = pd.concat(downloaded_metadata, ignore_index=True)
else:
return pd.DataFrame(downloaded_metadata)

failed_tiles = pd.DataFrame(failed_tiles, columns=tiles.columns).reset_index(
drop=True
)
target_columns = [
"id", "geometry", "captured_at", "is_pano", "compass_angle", "sequence", "organization_id"
]
Expand Down
1 change: 0 additions & 1 deletion mapswipe_workers/tests/unittests/test_process_mapillary.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ def test_coordinate_download(self, mock_download_and_process_tile):
)

self.assertIsInstance(metadata, pd.DataFrame)
self.assertTrue(failed.empty)

@patch("mapswipe_workers.utils.process_mapillary.download_and_process_tile")
def test_coordinate_download_with_failures(self, mock_download_and_process_tile):
Expand Down

0 comments on commit df17d3c

Please sign in to comment.