Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dsc_toolkit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""DeepScenario Toolkit for visualizing and working with DeepScenario datasets."""

__version__ = '1.0.3'
__version__ = '1.0.4'
10 changes: 7 additions & 3 deletions dsc_toolkit/plot_annotations_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@
from dsc_toolkit.utils.visuals import get_ann_visuals, set_camera_transform


def make_animate_fn(plotter: vedo.Plotter, anns_df: pd.DataFrame, frames_df: pd.DataFrame,
save_dir: str | None) -> Callable:
def make_animate_fn(
plotter: vedo.Plotter,
anns_df: pd.DataFrame,
frames_df: pd.DataFrame,
save_dir: str | None,
) -> Callable:
frame_idx = 0
visuals_curr = []
pbar = tqdm(total=len(frames_df), desc='Visualizing frames', unit='frame')
anns_df_grouped = anns_df.groupby('frame_id')

def animate_fn(event: vedo.plotter.Event) -> None:
def animate_fn(event: vedo.plotter.events.Event) -> None:
nonlocal frame_idx
if frame_idx >= len(frames_df):
plotter.close()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies = [
"numpy (>=1.26,<3.0)",
"pandas (>=2.2,<3.0)",
"pyarrow (>=20.0,<21.0)",
"vedo (>=2025.5.3)",
"vedo (>=2026.6.1)",
"rasterio (>=1.3,<2.0)",
"folium (>=0.20,<1)",
"tqdm (>=4.66,<5.0)",
Expand Down
Loading
Loading