Skip to content

Commit e09796e

Browse files
committed
Remove redundant default args
1 parent a04044c commit e09796e

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

src/ess/livedata/dashboard/plotting.py

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111
import pydantic
1212
import scipp as sc
1313

14-
from .extractors import (
15-
FullHistoryExtractor,
16-
LatestValueExtractor,
17-
UpdateExtractor,
18-
)
14+
from .extractors import FullHistoryExtractor, UpdateExtractor
1915
from .plot_params import PlotParamsROIDetector
2016
from .plots import (
2117
ImagePlotter,
@@ -161,7 +157,7 @@ def create_plotter(self, name: str, params: pydantic.BaseModel) -> Plotter:
161157
name='image',
162158
title='Image',
163159
description='Plot the data as a images.',
164-
data_requirements=DataRequirements(min_dims=2, max_dims=2, required_extractor=None),
160+
data_requirements=DataRequirements(min_dims=2, max_dims=2),
165161
factory=ImagePlotter.from_params,
166162
)
167163

@@ -170,12 +166,7 @@ def create_plotter(self, name: str, params: pydantic.BaseModel) -> Plotter:
170166
name='lines',
171167
title='Lines',
172168
description='Plot the data as line plots.',
173-
data_requirements=DataRequirements(
174-
min_dims=1,
175-
max_dims=1,
176-
multiple_datasets=True,
177-
required_extractor=None,
178-
),
169+
data_requirements=DataRequirements(min_dims=1, max_dims=1, multiple_datasets=True),
179170
factory=LinePlotter.from_params,
180171
)
181172

@@ -202,7 +193,6 @@ def create_plotter(self, name: str, params: pydantic.BaseModel) -> Plotter:
202193
min_dims=3,
203194
max_dims=3,
204195
multiple_datasets=False,
205-
required_extractor=None,
206196
custom_validators=[_all_coords_evenly_spaced],
207197
),
208198
factory=SlicerPlotter.from_params,
@@ -239,11 +229,6 @@ def _roi_detector_plotter_factory(params: PlotParamsROIDetector) -> Plotter:
239229
'Backspace while the mouse is within the plot area.</li>'
240230
'</ul>'
241231
),
242-
data_requirements=DataRequirements(
243-
min_dims=2,
244-
max_dims=2,
245-
multiple_datasets=True,
246-
required_extractor=LatestValueExtractor,
247-
),
232+
data_requirements=DataRequirements(min_dims=2, max_dims=2, multiple_datasets=True),
248233
factory=_roi_detector_plotter_factory,
249234
)

0 commit comments

Comments
 (0)