Skip to content

Commit

Permalink
refactor: Change ObjectSelector to Selector (#768)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew <[email protected]>
  • Loading branch information
hoxbro and ahuang11 authored Nov 27, 2024
1 parent 4c8aabb commit 5cca1c8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion geoviews/operation/regrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class weighted_regrid(regrid):
operation.
"""

interpolation = param.ObjectSelector(default='bilinear',
interpolation = param.Selector(default='bilinear',
objects=['bilinear', 'conservative', 'nearest_s2d', 'nearest_d2s'], doc="""
Interpolation method""")

Expand Down
2 changes: 1 addition & 1 deletion geoviews/plotting/bokeh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def get_data(self, element, ranges, style):

class FeaturePlot(GeoPolygonPlot):

scale = param.ObjectSelector(default='110m',
scale = param.Selector(default='110m',
objects=['10m', '50m', '110m'],
doc="The scale of the Feature in meters.")

Expand Down
2 changes: 1 addition & 1 deletion geoviews/plotting/mpl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ class FeaturePlot(GeoPlot):
Draws a feature from a Features Element.
"""

scale = param.ObjectSelector(default='110m',
scale = param.Selector(default='110m',
objects=['10m', '50m', '110m'],
doc="The scale of the Feature in meters.")

Expand Down
2 changes: 1 addition & 1 deletion geoviews/plotting/mpl/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class WindBarbsPlot(ColorbarPlot):

padding = param.ClassSelector(default=0.05, class_=(int, float, tuple))

convention = param.ObjectSelector(objects=["from", "to"], doc="""
convention = param.Selector(default="from", objects=["from", "to"], doc="""
Convention to return direction; 'from' returns the direction the wind is coming from
(meteorological convention), 'to' returns the direction the wind is going towards
(oceanographic convention).""")
Expand Down

0 comments on commit 5cca1c8

Please sign in to comment.