Skip to content

Commit cdd7050

Browse files
authored
Merge pull request #106 from NeurodataWithoutBorders/dataset-compression-property
dummy compression and compression_opts on dataset
2 parents b125c11 + 9dca48e commit cdd7050

File tree

7 files changed

+13
-12
lines changed

7 files changed

+13
-12
lines changed

.github/workflows/integration_tests.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ jobs:
1414
- name: Install
1515
run: pip install .
1616
- name: Install packages needed for tests
17-
# pyright 1.1.336 can produce annoying errors
18-
run: pip install pytest pytest-cov pyright==1.1.335
17+
run: pip install pytest pytest-cov
1918
- name: Install pynwb needed for tests
2019
run: pip install pynwb
21-
- name: Run pyright
22-
run: cd lindi && pyright
2320
- name: Run tests and collect coverage
2421
run: pytest --cov lindi --cov-report=xml --cov-report=term tests/
2522
- name: Upload coverage reports to Codecov

.github/workflows/linter_checks.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ jobs:
1414
- name: Install
1515
run: pip install .
1616
- name: Install packages needed for tests
17-
# pyright 1.1.336 can produce annoying errors
18-
run: pip install pyright==1.1.335 flake8 pytest
17+
run: pip install flake8 pytest
1918
- name: Run flake8
2019
run: cd lindi && flake8 --config ../.flake8
21-
- name: Run pyright
22-
run: cd lindi && pyright .

.vscode/tasks/quick_test.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ set -ex
55

66
cd lindi
77
flake8 .
8-
# pyright
98
cd ..
109

1110
pytest --cov=lindi --cov-report=xml --cov-report=term -m "not slow and not network" tests/

.vscode/tasks/test.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ set -ex
55

66
cd lindi
77
flake8 .
8-
pyright .
98
cd ..
109

1110
pytest --cov=lindi --cov-report=xml --cov-report=term tests/

lindi/LindiH5pyFile/LindiH5pyDataset.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,16 @@ def fletcher32(self):
154154
return True
155155
return False
156156

157+
@property
158+
def compression(self):
159+
# Return dummy value so we don't break hdmf
160+
return None
161+
162+
@property
163+
def compression_opts(self):
164+
# Return dummy value so we don't break hdmf
165+
return None
166+
157167
@property
158168
def chunks(self):
159169
return self._zarr_array.chunks

lindi/LindiRemfile/LindiRemfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def _load_chunk(self, chunk_index: int) -> bytes:
201201
)
202202
if self._verbose:
203203
print(
204-
f"Loading {self._smart_loader_chunk_sequence_length} chunks starting at {chunk_index} ({(data_end - data_start + 1)/1e6} million bytes)"
204+
f"Loading {self._smart_loader_chunk_sequence_length} chunks starting at {chunk_index} ({(data_end - data_start + 1) / 1e6} million bytes)"
205205
)
206206
if data_end >= self.length:
207207
data_end = self.length - 1

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ pynwb = "^2.6.0"
2222
pytest = "^7.4.4"
2323
pytest-cov = "^4.1.0"
2424
ruff = "^0.3.3"
25-
pyright = "1.1.335"
2625

2726
[build-system]
2827
requires = ["poetry-core"]

0 commit comments

Comments
 (0)