From f533d488046c15a2cdb50842e4a6cbc463ef5886 Mon Sep 17 00:00:00 2001 From: gpwolfe Date: Wed, 14 Jan 2026 11:58:17 -0500 Subject: [PATCH] Make existing_file_path always pathlib.Path --- omg/datamodule/structure_dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omg/datamodule/structure_dataset.py b/omg/datamodule/structure_dataset.py index c204cff..d81332d 100644 --- a/omg/datamodule/structure_dataset.py +++ b/omg/datamodule/structure_dataset.py @@ -112,7 +112,7 @@ def __init__(self, file_path: str, property_keys: Optional[Sequence[str]] = None path = Path(file_path) if path.exists(): - existing_file_path = file_path + existing_file_path = path else: # Try to use the data from the omg package. # noinspection PyTypeChecker