diff --git a/.conda-recipe/meta.yaml b/.conda-recipe/meta.yaml index c7f93ac..3edb17a 100644 --- a/.conda-recipe/meta.yaml +++ b/.conda-recipe/meta.yaml @@ -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 diff --git a/pyxona/core.py b/pyxona/core.py index f6ba025..0e65458 100644 --- a/pyxona/core.py +++ b/pyxona/core.py @@ -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 ' + diff --git a/setup.py b/setup.py index 001d2bb..10d6287 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ entry_points = None -install_requires = [] +install_requires = ['quantities'] setup( name="pyxona",