Made replace_dimensions into a classmethod of new redim class
@@ -40,7 +40,14 @@ def param_aliases(d):
return d
-def replace_dimensions(dimensions, overrides):
+class redim(object):
+ """
+ Utility that supports re-dimensioning any HoloViews object via the
+ redim method.
+ """
+
+ @classmethod
+ def replace_dimensions(cls, dimensions, overrides):
"""
Replaces dimensions in a list with a dictionary of overrides.
Overrides should be indexed by the dimension name with values that
@@ -71,7 +78,6 @@ def replace_dimensions(dimensions, overrides):
'of attributes')
return replaced
-
class Dimension(param.Parameterized):
"""
Dimension objects are used to specify some important general
