Skip to content

Commit

Permalink
Added command save-as. (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
ATATC committed Aug 2, 2024
1 parent 248d928 commit 9858dd8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,10 @@ jobs:
with:
file: rear-view.mp4 # destination to save the video
tag: rear # front, left, right, or rear
- name: Save
uses: save-as
with:
file: data/new.csv
```
## Devices Module
Expand Down
5 changes: 4 additions & 1 deletion leads_vec_dp/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def run(target: str) -> int:
processor.draw_comparison_of_laps(**_optional_kwargs(job, "with"))
case "extract-video":
_extract_video(dataset, file := job["with"]["file"], job["with"]["tag"])
_L.info(f"Video saved to {file}")
_L.info(f"Video saved as {file}")
case "save-as":
dataset.save(file := job["with"]["file"])
_L.info(f"Dataset saved as {file}")

return 0

0 comments on commit 9858dd8

Please sign in to comment.