You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On latest master I am getting a new failure when trying to set the range on time dimensions.
import numpy as np
import pandas as pd
import holoviews as hv
hv.extension('bokeh')
df = pd.DataFrame({
'x': pd.date_range('2017', '2018', periods=100),
'y': np.sin(np.linspace(0, 2*np.pi, 100))
})
hv.Curve(df).redim.range(x=(pd.Timestamp('2017-05'),pd.Timestamp('2017-09')))
error output:
/Users/jsignell/holoviews/holoviews/core/util.py in dimension_range(lower, upper, hard_range, soft_range, padding, log)
883 lower, upper = max_range([(lower, upper), soft_range])
884 dmin, dmax = hard_range
--> 885 lower = lower if dmin is None or not np.isfinite(dmin) else dmin
886 upper = upper if dmax is None or not np.isfinite(dmax) else dmax
887 return lower, upper
TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
The text was updated successfully, but these errors were encountered:
Thanks, we wrote our own isfinite implementation which also lives in core/util.py for precisely this reason but it seems its not used consistently throughout. Should probably grep for np.isfinite and replace it whereever it makes sense.
On latest master I am getting a new failure when trying to set the range on time dimensions.
error output:
The text was updated successfully, but these errors were encountered: