yxma commited on
Commit
05154ee
·
verified ·
1 Parent(s): 52214bd

refresh the published scripts and USAGE.md from the repo

Browse files
scripts/test_probe_render_matches_action.py CHANGED
@@ -29,6 +29,11 @@ from __future__ import annotations
29
  import sys
30
  from pathlib import Path
31
 
 
 
 
 
 
32
  sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
33
 
34
  import numpy as np # noqa: E402
 
29
  import sys
30
  from pathlib import Path
31
 
32
+ # parents[2] is the REPO ROOT. `import twm.X` needs the directory that
33
+ # CONTAINS the twm package, not the package itself -- inserting parents[1]
34
+ # (twm/) leaves every `from twm.calib_epoch import ...` unresolvable, which
35
+ # is why eight verifiers under this directory could not run at all.
36
+ sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
37
  sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
38
 
39
  import numpy as np # noqa: E402