Skip to content

Commit 980957b

Browse files
committed
STY: apply black
1 parent 0dc2c6c commit 980957b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data_prototype/wrappers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@ def __init__(self, data: DataContainer, nus=None, /, cmap=None, norm=None, **kwa
197197
print(kwargs, nus)
198198
nus = dict(nus or {})
199199
if cmap is not None or norm is not None:
200-
if nus is not None and 'image' in nus:
200+
if nus is not None and "image" in nus:
201201
raise ValueError("Conflicting input")
202202
if cmap is None:
203-
cmap = mpl.colormaps['viridis']
203+
cmap = mpl.colormaps["viridis"]
204204
if norm is None:
205205
raise ValueError("not sure how to do autoscaling yet")
206-
nus['image'] = lambda image: cmap(norm(image))
206+
nus["image"] = lambda image: cmap(norm(image))
207207
super().__init__(data, nus)
208208
kwargs.setdefault("origin", "lower")
209209
self._wrapped_instance = self._wrapped_class(None, **kwargs)

0 commit comments

Comments
 (0)