-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename Tier4Viewer to RerunViewer (#58)
Signed-off-by: ktro2828 <[email protected]>
- Loading branch information
Showing
5 changed files
with
47 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
import pytest | ||
|
||
from t4_devkit.viewer import Tier4Viewer | ||
from t4_devkit.viewer import RerunViewer | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def dummy_viewer(label2id) -> Tier4Viewer: | ||
def dummy_viewer(label2id) -> RerunViewer: | ||
"""Return a dummy viewer. | ||
Returns: | ||
`Tier4Viewer` without spawning. | ||
`RerunViewer` without spawning. | ||
""" | ||
return Tier4Viewer("test_viewer", cameras=["camera"], spawn=False).with_labels( | ||
label2id=label2id | ||
) | ||
return RerunViewer( | ||
"test_viewer", | ||
cameras=["camera"], | ||
spawn=False, | ||
).with_labels(label2id=label2id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters