Skip to content

Commit

Permalink
Run autoflake. (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminrwilson authored Mar 22, 2023
1 parent 8696774 commit 5754612
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion integration_tests/verify_tbv_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import logging
import sys
from pathlib import Path
from typing import Final, List, Tuple
from typing import Final, Tuple

import click
from rich.progress import track
Expand Down
3 changes: 0 additions & 3 deletions src/av2/evaluation/detection/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,9 @@
in addition to the mean statistics average across all classes, and P refers to the number of included statistics,
e.g. AP, ATE, ASE, AOE, CDS by default.
"""
import itertools
import logging
import multiprocessing as mp
import warnings
from math import inf
from statistics import mean
from typing import Dict, Final, List, Optional, Tuple

import numpy as np
Expand Down
1 change: 0 additions & 1 deletion src/av2/evaluation/scene_flow/make_mask_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import zipfile
from pathlib import Path
from typing import BinaryIO

import click
import pandas as pd
Expand Down
5 changes: 1 addition & 4 deletions src/av2/evaluation/scene_flow/make_submission_archive.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
"""Validate and package a set of prediction files for submission to the leaderboard."""
import json
from pathlib import Path
from typing import Dict, Final
from typing import Final
from zipfile import ZipFile

import click
import numpy as np
import pandas as pd
from rich.progress import track

import av2.evaluation.scene_flow.utils

SUBMISSION_COLUMNS: Final = ("flow_tx_m", "flow_ty_m", "flow_tz_m", "is_dynamic")


Expand Down
1 change: 0 additions & 1 deletion src/av2/map/map_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from pathlib import Path
from typing import Dict, Final, List, Optional, Tuple, Union

import fsspec
import numpy as np
from upath import UPath

Expand Down
2 changes: 1 addition & 1 deletion src/av2/rendering/ops/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import numpy as np

from av2.utils.constants import NAN
from av2.utils.typing import NDArrayByte, NDArrayFloat, NDArrayInt, NDArrayNumber
from av2.utils.typing import NDArrayByte, NDArrayFloat, NDArrayInt

UINT8_MAX: Final[np.uint8] = np.uint8(np.iinfo(np.uint8).max)
UINT8_BITS: Final[np.uint8] = np.log2(UINT8_MAX + 1).astype(np.uint8)
Expand Down
2 changes: 1 addition & 1 deletion src/av2/torch/structures/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

from dataclasses import dataclass
from typing import Dict, Final, List, Tuple
from typing import Dict, Final, Tuple

import torch
from kornia.geometry.linalg import transform_points
Expand Down
1 change: 0 additions & 1 deletion tests/evaluation/scene_flow/test_sf_submission_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import numpy as np

import av2.evaluation.scene_flow.constants
import av2.evaluation.scene_flow.eval as eval
from av2.evaluation.scene_flow.example_submission import example_submission
from av2.evaluation.scene_flow.make_annotation_files import make_annotation_files
Expand Down
1 change: 0 additions & 1 deletion tutorials/generate_forecasting_scenario_visualizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from typing import Final

import click
import numpy as np
from joblib import Parallel, delayed
from rich.progress import track

Expand Down

0 comments on commit 5754612

Please sign in to comment.