Skip to content

Commit 3cd21cd

Browse files
C-AchardCopilot
andcommitted
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 26131f8 commit 3cd21cd

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

dlclive/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ def save_poses_to_files(
721721
-------
722722
None
723723
"""
724-
import pandas as pd # noqa: F401
724+
import pandas as pd
725725

726726
base_filename = Path(video_path).stem
727727
save_dir = Path(save_dir)

dlclive/check_install/check_install.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -172,20 +172,20 @@ def main():
172172
UserWarning,
173173
)
174174

175-
print("\n---\nBackend test summary:")
176-
for name in ("tensorflow", "pytorch"):
177-
status, _ = backend_results.get(name, ("SKIPPED", None))
178-
print(f"{name:<11} [{status}]")
179-
print("---")
180-
for name, (status, error) in backend_results.items():
181-
if status == "ERROR":
182-
print(f"{name.capitalize()} error:\n{error}\n")
183-
184-
if not any_backend_succeeded and backend_failures:
185-
failure_messages = "; ".join(
186-
f"{b}: {exc}" for b, exc in backend_failures.items()
187-
)
188-
raise RuntimeError(f"All backend tests failed. Details: {failure_messages}")
175+
print("\n---\nBackend test summary:")
176+
for name in ("tensorflow", "pytorch"):
177+
status, _ = backend_results.get(name, ("SKIPPED", None))
178+
print(f"{name:<11} [{status}]")
179+
print("---")
180+
for name, (status, error) in backend_results.items():
181+
if status == "ERROR":
182+
print(f"{name.capitalize()} error:\n{error}\n")
183+
184+
if not any_backend_succeeded and backend_failures:
185+
failure_messages = "; ".join(
186+
f"{b}: {exc}" for b, exc in backend_failures.items()
187+
)
188+
raise RuntimeError(f"All backend tests failed. Details: {failure_messages}")
189189

190190

191191
finally:

0 commit comments

Comments
 (0)