Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix conda build #12

Open
wants to merge 3 commits into
base: stable
Choose a base branch
from
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
69 changes: 40 additions & 29 deletions .conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,48 @@
package:
name: pyxona
version: {{ environ.get("GIT_TAG", "0.0.0_custom")|replace("v", "")|replace("-", "_") }}
name: pyxona
version: {{ environ.get("GIT_STRING", "0.0.0_custom")|replace("v", "")|replace("-", "_") }}

source:
git_url: ..
git_url: ..

build:
# noarch: python # TODO Add back noarch when it works properly on Windows,
# we are converting packages manually now
script:
- pip install quantities==0.12.3
- python setup.py install
noarch: python
script: python -m pip install --no-deps --ignore-installed .

requirements:
build:
- python
- setuptools
- pip
- numpy
- scipy
run:
- python
- setuptools
- pip
- numpy
- scipy
host:
- python
- setuptools
- pip

run:
- python
- setuptools
- numpy
- scipy
- quantities

test:
requires:
- pytest
- coverage
- codecov
- sphinx
- quantities

source_files:
- tests
- docs
imports:
- pyxona
- pyxona
commands:
- python -c "import exdir; print(exdir.__version__)"
- coverage run --source tests -m py.test -s
- coverage report # [py3k]
- codecov # [py3k]
- cd docs ; make doctest # [py3k]

about:
description: 'IO for expipe and neuroscience data'
dev_url: https://github.com/CINPLA/pyxona
license: GNU GPLv3
license_family: GPL
license_file: LICENSE
extra:
recipe-maintainers:
- dragly
home: https://github.com/CINPLA/pyxona/
license: MIT
license_file: LICENSE
8 changes: 8 additions & 0 deletions pyxona/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,14 @@ def _read_analog_signals(self):
'Not sure how to retrieve original channel from mode ' +
'{} in {}. '.format(eeg_mode, eeg_filename) +
'Please make sure it is the correct gain and channel_id.')
elif eeg_mode == 3: # what mode is this??
other_channel = self.attrs["b_in_ch_" + str(eeg_final_channel_id)]
ref_id = self.attrs["b_in_ch_" + str(other_channel)]
eeg_original_channel_id = self.attrs["ref_" + str(ref_id)]
warnings.warn(
'Not sure how to retrieve original channel from mode ' +
'{} in {}. '.format(eeg_mode, eeg_filename) +
'Please make sure it is the correct gain and channel_id.')
else:
warnings.warn(
'Not sure how to retrieve original channel from mode ' +
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

entry_points = None

install_requires = []
install_requires = ['quantities']

setup(
name="pyxona",
Expand Down