Skip to content

Commit

Permalink
Don't filter out inf/nan for datetime dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Mar 19, 2018
1 parent fc5b45d commit 5aa8dbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion glue/core/state_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ def update_values(self, force=False, use_default_modifiers=False, **properties):

# NOTE: we can't use np.nanmin/np.nanmax or nanpercentile below as
# they don't exclude inf/-inf
data_values = data_values[np.isfinite(data_values)]
if data_values.dtype.kind != 'M':
data_values = data_values[np.isfinite(data_values)]

if percentile == 100:

Expand Down

0 comments on commit 5aa8dbe

Please sign in to comment.