Skip to content

Commit

Permalink
Fix black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GDYendell committed Sep 27, 2023
1 parent 068eeb7 commit c5fac3f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions python/src/odin_data/meta_writer/hdf5dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, shape, fillvalue, dtype):


class HDF5UnlimitedCache(object):
""" An object to represent a cache used by an HDF5Dataset """
"""An object to represent a cache used by an HDF5Dataset"""

def __init__(self, name, dtype, fillvalue, block_size, data_shape, block_timeout):
"""
Expand Down Expand Up @@ -157,7 +157,13 @@ def __init__(
self.fillvalue = fillvalue
self.shape = shape if shape is not None else (0,) * rank
self.chunks = chunks
self.maxshape = maxshape if maxshape is not None else shape if shape is not None else (None,) * rank
self.maxshape = (
maxshape
if maxshape is not None
else shape
if shape is not None
else (None,) * rank
)
self._cache = None

data_shape = self.shape[1:] # The shape of each data element in dataset
Expand Down Expand Up @@ -244,7 +250,7 @@ def write(self, data):
self.name,
data.shape,
self.shape,
exception
exception,
)
return

Expand Down

0 comments on commit c5fac3f

Please sign in to comment.