Skip to content

Commit 32b6950

Browse files
authored
Dandi fetch bug fix (#1469)
* fix dandi path method call * changelog
1 parent 4764d07 commit 32b6950

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ DecodingParameters().alter()
4141
- Simplify PR template #1370
4242
- Add `SpyglassIngestion` class to centralize functionality #1377, #1423, #1465
4343
- Pin `ndx-optogenetics` to 0.2.0 #1458
44+
- Cleanup bug when fetching raw files from DANDI #1469
4445
- Refactor pytests for speed, run fast tests on push #1440
4546

4647
### Pipelines

src/spyglass/utils/nwb_helper_fn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def get_nwb_file(nwb_file_path, query_expression=None):
103103
return _open_nwb_file(nwb_file_path, source="dandi")
104104

105105
if DandiPath().has_raw_path(file_path=nwb_file_path):
106-
raw = DandiPath().get_raw_path(file_path=nwb_file_path)["filename"]
106+
raw = DandiPath().raw_from_path(file_path=nwb_file_path)["filename"]
107107
return _open_nwb_file(raw, source="dandi")
108108

109109
if hasattr(query_expression, "_make_file"):

0 commit comments

Comments
 (0)