Skip to content

Commit

Permalink
Merge pull request #227 from VesnaT/table_to_ts_dtype
Browse files Browse the repository at this point in the history
[FIX] As Timeseries: Cast array dtype from object to float
  • Loading branch information
ajdapretnar committed Aug 4, 2022
2 parents 8459850 + f76a78b commit 663f531
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orangecontrib/timeseries/widgets/owtabletotimeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ def commit(self):
times, sparse = data.get_column_view(self.order)
if sparse:
times = times.data
else:
times = times.astype(float)
if np.isnan(times).any():
self.Information.nan_times(self.order.name)

Expand Down

0 comments on commit 663f531

Please sign in to comment.