Skip to content

Commit

Permalink
More precommit issues
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Nov 17, 2020
1 parent 59c031e commit a4b5a3e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions ome_zarr/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ def __init__(self, node: Node) -> None:
LOGGER.error(f"invalid color - {color}: {e}")

properties: Dict[int, Dict[str, str]] = {}
props_list = image_label.get('properties', [])
props_list = image_label.get("properties", [])
if props_list:
for props in props_list:
label_val = props['label-value']
label_val = props["label-value"]
properties[label_val] = dict(props)
del properties[label_val]['label-value']
del properties[label_val]["label-value"]

# TODO: a metadata transform should be provided by specific impls.
name = self.zarr.basename()
Expand All @@ -235,12 +235,8 @@ def __init__(self, node: Node) -> None:
}
)
if properties:
node.metadata.update(
{
"properties": properties
node.metadata.update({"properties": properties})

}
)

class Multiscales(Spec):
@staticmethod
Expand Down

0 comments on commit a4b5a3e

Please sign in to comment.