Visitar URL original
More debug prints · DeepLabCut/DeepLabCut@1023a14 · GitHub
Skip to content

Commit 1023a14

Browse files
committed
More debug prints
1 parent ccea1d1 commit 1023a14

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎examples/testscript_pytorch_multi_animal.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def main(
8686
raise err
8787
print("Right before finally")
8888
finally:
89+
print("Inside finally")
8990
if delete_after_test_run:
9091
cleanup(project_path)
9192

@@ -118,3 +119,4 @@ def main(
118119
create_labeled_videos=True,
119120
delete_after_test_run=True,
120121
)
122+
print("Done with everything")

‎examples/utils.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ def log_step(message: Any) -> None:
3838

3939

4040
def cleanup(test_path: Path) -> None:
41+
print("Inside cleanup")
4142
if test_path.exists():
4243
shutil.rmtree(test_path)
44+
print("Deleted test path!")
4345

4446

4547
@dataclass(frozen=True)

0 commit comments

Comments
 (0)