Skip to content

Commit

Permalink
Merge pull request #573 from catalystneuro/fix_timeintervals_schema
Browse files Browse the repository at this point in the history
Move timeintervals schema to `schemas/` dir to include in build
  • Loading branch information
CodyCBakerPhD authored Sep 21, 2023
2 parents dfd363e + d6117da commit f5a3da2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/neuroconv/datainterfaces/text/timeintervalsinterface.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
from abc import abstractmethod
from pathlib import Path
from typing import Dict, Optional

import numpy as np
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f5a3da2

Please sign in to comment.