def to_description()

in mapillary_tools/geotag/geotag_from_gpx_file.py [0:0]


    def to_description(self) -> T.List[types.ImageDescriptionFileOrError]:
        with tqdm(
            total=len(self.images),
            desc=f"Interpolating",
            unit="images",
            disable=LOG.getEffectiveLevel() <= logging.DEBUG,
        ) as pbar:
            geotag = GeotagFromGPXWithProgress(
                self.image_dir,
                self.images,
                self.points,
                use_gpx_start_time=self.use_gpx_start_time,
                offset_time=self.offset_time,
                progress_bar=pbar,
            )
            descs = geotag.to_description()

        return list(
            types.map_descs(
                self._attach_exif,
                tqdm(
                    descs,
                    desc=f"Processing",
                    unit="images",
                    disable=LOG.getEffectiveLevel() <= logging.DEBUG,
                ),
            )
        )