Skip to content

Commit fdff390

Browse files
author
Theo
committed
chore: lint
1 parent 19fa804 commit fdff390

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

‎python/omfiles/dask.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def write_dask_array(
7676
if chunks is None:
7777
chunks = [c[0] for c in data.chunks]
7878

79-
8079
_validate_chunk_alignment(data.chunks, list(chunks), data.shape)
8180

8281
return writer.write_array_streaming(

‎tests/test_streaming_write.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,10 @@ def test_dask_larger_chunks_than_om_2d(self):
328328
with tempfile.NamedTemporaryFile(suffix=".om") as f:
329329
writer = OmFileWriter(f.name)
330330
var = self.write_dask_array(
331-
writer, darr, chunks=[5, 10], scale_factor=10000.0,
331+
writer,
332+
darr,
333+
chunks=[5, 10],
334+
scale_factor=10000.0,
332335
)
333336
writer.close(var)
334337

@@ -367,7 +370,10 @@ def test_dask_single_om_chunk_per_slow_dim(self):
367370
with tempfile.NamedTemporaryFile(suffix=".om") as f:
368371
writer = OmFileWriter(f.name)
369372
var = self.write_dask_array(
370-
writer, darr, chunks=[5, 5], scale_factor=10000.0,
373+
writer,
374+
darr,
375+
chunks=[5, 5],
376+
scale_factor=10000.0,
371377
)
372378
writer.close(var)
373379

‎tests/test_xarray.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,8 @@ def test_write_dataset_dask_larger_chunks_than_om(empty_temp_om_file):
471471
)
472472

473473
write_dataset(
474-
ds, empty_temp_om_file,
474+
ds,
475+
empty_temp_om_file,
475476
chunks={"lat": 5, "lon": 10},
476477
scale_factor=100000.0,
477478
)

0 commit comments

Comments
 (0)