Skip to content

Commit

Permalink
Merge pull request NeuralEnsemble#1271 from apdavison/igor2
Browse files Browse the repository at this point in the history
Use igor2 in place of igor
  • Loading branch information
JuliaSprenger authored May 11, 2023
2 parents 093231f + 71a3c19 commit 8ec656d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion doc/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Neo will still install but the IO module that uses them will fail on loading:
* scipy >= 1.0.0 for NeoMatlabIO
* h5py >= 2.5 for KwikIO
* klusta for KwikIO
* igor >= 0.2 for IgorIO
* igor2 >= 0.5.2 for IgorIO
* nixio >= 1.5 for NixIO
* stfio for StimfitIO
* pillow for TiffIO
Expand Down
12 changes: 6 additions & 6 deletions neo/io/igorproio.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Class for reading data created by IGOR Pro
(WaveMetrics, Inc., Portland, OR, USA)
Depends on: igor (https://pypi.python.org/pypi/igor/)
Depends on: igor2 (https://pypi.python.org/pypi/igor2/)
Supported: Read
Expand All @@ -25,7 +25,7 @@ class IgorIO(BaseIO):
or Packed Experiment (.pxp) files written by WaveMetrics’
IGOR Pro software.
It requires the `igor` Python package by W. Trevor King.
It requires the `igor2` Python package.
Usage:
>>> from neo import io
Expand Down Expand Up @@ -76,8 +76,8 @@ def read_block(self, lazy=False):
return block

def read_segment(self, lazy=False):
import igor.packed as pxp
from igor.record.wave import WaveRecord
import igor2.packed as pxp
from igor2.record.wave import WaveRecord

assert not lazy, 'This IO does not support lazy mode'
segment = Segment(file_origin=str(self.filename))
Expand All @@ -100,8 +100,8 @@ def callback(dirpath, key, value):
return segment

def read_analogsignal(self, path=None, lazy=False):
import igor.binarywave as bw
import igor.packed as pxp
import igor2.binarywave as bw
import igor2.packed as pxp

assert not lazy, 'This IO does not support lazy mode'

Expand Down
2 changes: 1 addition & 1 deletion neo/test/iotest/test_igorio.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import unittest

try:
import igor
import igor2

HAVE_IGOR = True
except ImportError:
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test = [
"scipy>=1.0.0",
"pyedflib",
"h5py",
"igor",
"igor2",
"klusta",
"tqdm",
"nixio",
Expand Down Expand Up @@ -83,7 +83,7 @@ dev = [
"twine"
]

igorproio = ["igor"]
igorproio = ["igor2"]
kwikio = ["klusta"]
neomatlabio = ["scipy>=1.0.0"]
nixio = ["nixio>=1.5.0"]
Expand All @@ -99,7 +99,7 @@ all = [
"coverage",
"coveralls",
"h5py",
"igor",
"igor2",
"ipython",
"klusta",
"matplotlib",
Expand Down

0 comments on commit 8ec656d

Please sign in to comment.