Skip to content

Commit e081e6f

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

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
@@ -753,7 +753,7 @@ def save_poses_to_files(
753753
-------
754754
None
755755
"""
756-
import pandas as pd # noqa: F401
756+
import pandas as pd
757757

758758
base_filename = Path(video_path).stem
759759
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
@@ -173,20 +173,20 @@ def main():
173173
UserWarning,
174174
)
175175

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

191191

192192
finally:

0 commit comments

Comments
 (0)