Skip to content

Commit

Permalink
cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rly committed May 14, 2024
1 parent 5dbf83b commit 3652ebb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lindi/LindiH5ZarrStore/LindiH5ZarrStore.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,6 @@ def to_reference_file_system(self) -> dict:
raise Exception("You must specify a url to create a reference file system")
ret = {"refs": {}, "version": 1}

# TODO: use templates to decrease the size of the JSON

def _add_ref(key: str, content: Union[bytes, None]):
if content is None:
raise Exception(f"Unable to get content for key {key}")
Expand All @@ -629,7 +627,7 @@ def _add_ref(key: str, content: Union[bytes, None]):
def _add_ref_chunk(key: str, data: Tuple[str, int, int]):
assert data[1] is not None
assert data[2] is not None
ret["refs"][key] = list(data) # TODO make downstream accept tuple
ret["refs"][key] = list(data) # downstream expects a list like on read from a JSON file

def _process_group(key, item: h5py.Group):
if isinstance(item, h5py.Group):
Expand Down

0 comments on commit 3652ebb

Please sign in to comment.