diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a2c649f7..1286f30f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,15 @@ # (Upcoming) -### Feature +### Features * `DeepLabCutInterface` now allows using custom timestamps via `set_aligned_timestamps` method before running conversion. [PR #531](https://github.com/catalystneuro/neuroconv/pull/532) +### Fixes + +* Reorganize timeintervals schema to reside in `schemas/` dir to ensure its inclusion in package build. [PR #573](https://github.com/catalystneuro/neuroconv/pull/573) + + + # v0.4.3 ### Fixes diff --git a/src/neuroconv/datainterfaces/text/timeintervalsinterface.py b/src/neuroconv/datainterfaces/text/timeintervalsinterface.py index 3c2568cb9..8dc30a197 100644 --- a/src/neuroconv/datainterfaces/text/timeintervalsinterface.py +++ b/src/neuroconv/datainterfaces/text/timeintervalsinterface.py @@ -1,5 +1,6 @@ import os from abc import abstractmethod +from pathlib import Path from typing import Dict, Optional import numpy as np @@ -47,7 +48,7 @@ def get_metadata(self) -> dict: return metadata def get_metadata_schema(self) -> dict: - fpath = os.path.join(os.path.split(__file__)[0], "timeintervals.schema.json") + fpath = Path(__file__).parent.parent.parent / "schemas" / "timeintervals_schema.json" return load_dict_from_file(fpath) def get_original_timestamps(self, column: str) -> np.ndarray: diff --git a/src/neuroconv/datainterfaces/text/timeintervals.schema.json b/src/neuroconv/schemas/timeintervals_schema.json similarity index 100% rename from src/neuroconv/datainterfaces/text/timeintervals.schema.json rename to src/neuroconv/schemas/timeintervals_schema.json