Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions neo/rawio/axographrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
_spike_channel_dtype,
_event_channel_dtype,
)
from neo.core import NeoReadWriteError

import os
from datetime import datetime
Expand Down
5 changes: 4 additions & 1 deletion neo/rawio/baserawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
import numpy as np
import os
import sys
from typing import Literal

from neo import logging_handler

Expand Down Expand Up @@ -1387,7 +1388,7 @@ def rescale_epoch_duration(
"""
return self._rescale_epoch_duration(raw_duration, dtype, event_channel_index)

def setup_cache(self, cache_path: "home" | "same_as_resource", **init_kargs):
def setup_cache(self, cache_path: Literal["home", "same_as_resource"], **init_kargs):
try:
import joblib
except ImportError:
Expand Down Expand Up @@ -1444,6 +1445,8 @@ def add_in_cache(self, **kargs):
def dump_cache(self):
if not self.use_cache:
raise ValueError("Can not use dump_cache if not using cache")
import joblib

joblib.dump(self._cache, self.cache_filename)

##################
Expand Down
1 change: 1 addition & 0 deletions neo/rawio/neuralynxrawio/neuralynxrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,7 @@ def scan_stream_ncs_files(self, ncs_filenames):
# Build dictionary of chan_uid to associated NcsSections, memmap and NlxHeaders. Only
# construct new NcsSections when it is different from that for the preceding file.
chanSectMap = dict()
chan_ncs_sections = None
sig_length = []
for ncs_filename in ncs_filenames:

Expand Down
3 changes: 1 addition & 2 deletions neo/test/iotest/test_neuralynxio.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
import quantities as pq

from neo.test.iotest.common_io_test import BaseTestIO
from neo.core import *
from neo.core import AnalogSignal, Epoch, Event, Segment, SpikeTrain

from neo.io.neuralynxio import NeuralynxIO
from neo import AnalogSignal

from neo.test.rawiotest.test_neuralynxrawio import TestNeuralynxRawIO

Expand Down
Loading