From f77e6c944368c9c4407faeaa2d7aa1c7d1243e62 Mon Sep 17 00:00:00 2001 From: Stefal Date: Mon, 23 Oct 2023 21:26:15 +0200 Subject: [PATCH] fix PixtureType set to None with "flat" image --- mapillary_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapillary_download.py b/mapillary_download.py index dbaaca1..bb2cb2b 100644 --- a/mapillary_download.py +++ b/mapillary_download.py @@ -153,7 +153,7 @@ if __name__ == '__main__': capture_time = datetime.utcfromtimestamp(int(image_data['captured_at'])/1000), longitude = image_data['geometry']['coordinates'][0], latitude = image_data['geometry']['coordinates'][1], - picture_type = PictureType("equirectangular") if image_data['camera_type'] == 'spherical' or image_data['camera_type'] == 'equirectangular' else None, + picture_type = PictureType("equirectangular") if image_data['camera_type'] == 'spherical' or image_data['camera_type'] == 'equirectangular' else PictureType("flat"), direction = image_data['compass_angle'], altitude = image_data['altitude'], )