Skip to content

Commit 72c7036

Browse files
committed
Make sure load() returns Path
Fixes manual forward unit test: ``` > ckpt_weights: Path = load(ckpt_name) / "weights" E TypeError: unsupported operand type(s) for /: 'str' and 'str' sub-packages/bionemo-evo2/tests/bionemo/evo2/test_evo2.py:505: TypeError ``` Signed-off-by: Anton Vorontsov <avorontsov@nvidia.com>
1 parent b1596ba commit 72c7036

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • sub-packages/bionemo-core/src/bionemo/core/data

sub-packages/bionemo-core/src/bionemo/core/data/load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def load(
203203
if checked.exists():
204204
path = checked.read_text()
205205
logger.debug(f"Using cached {path=} from {checked=}")
206-
return path
206+
return Path(path)
207207

208208
download = pooch.retrieve(
209209
url=str(url),

0 commit comments

Comments
 (0)