Skip to content

Commit 132ba26

Browse files
Merge pull request #11 from antgonza/python-3.9
python 3.9
2 parents c0a92cc + f4a7f71 commit 132ba26

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/qiita-plugin-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
uses: conda-incubator/setup-miniconda@v2
2020
with:
2121
auto-update-conda: true
22-
python-version: 3.6
22+
python-version: 3.9
2323

2424
- name: Basic dependencies install
2525
shell: bash -l {0}
2626
run: |
27-
conda create --yes -n qiita-files python=3.6 h5py pandas scipy numpy
27+
conda create --yes -n qiita-files python=3.9 h5py pandas scipy numpy
2828
conda activate qiita-files
2929
pip install .
3030
pip install sphinx sphinx-bootstrap-theme nose-timer codecov Click
@@ -41,7 +41,7 @@ jobs:
4141
- name: flake8
4242
uses: actions/setup-python@v2
4343
with:
44-
python-version: 3.6
44+
python-version: 3.9
4545
- name: install dependencies
4646
run: python -m pip install --upgrade pip
4747
- name: Check out repository code

qiita_files/demux.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,11 +596,14 @@ def fetch(demux, samples=None, k=None):
596596
# only yield qual if we have it
597597
quals = repeat([])
598598
if demux.attrs['has-qual']:
599+
# See https://github.com/h5py/h5py/issues/1847 for indexing below
599600
if len(indices) == 1:
600601
if indices[0]:
601-
quals = demux[pjoin(dset_paths_bytes['qual'])][:]
602+
quals = demux[
603+
pjoin(dset_paths_bytes['qual'])][:, :][:]
602604
else:
603-
quals = demux[pjoin(dset_paths_bytes['qual'])][indices, :]
605+
quals = demux[
606+
pjoin(dset_paths_bytes['qual'])][:, :][indices, :]
604607

605608
bc_original = demux[
606609
pjoin(dset_paths_bytes['barcode_original'])][indices]

0 commit comments

Comments
 (0)