Skip to content

Commit

Permalink
Merge pull request #376 from informatics-lab/earth-networks-image
Browse files Browse the repository at this point in the history
EarthNetworks images
  • Loading branch information
andrewgryan authored May 15, 2020
2 parents 8020b10 + 49df06c commit ed8505c
Show file tree
Hide file tree
Showing 5 changed files with 405 additions and 73 deletions.
2 changes: 1 addition & 1 deletion forest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
.. automodule:: forest.presets
"""
__version__ = '0.16.4'
__version__ = '0.17.0'

from .config import *
from . import (
Expand Down
7 changes: 6 additions & 1 deletion forest/db/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import copy
import datetime as dt
import numpy as np
import pandas as pd
import bokeh.models
import bokeh.layouts
from collections import namedtuple
Expand Down Expand Up @@ -117,7 +118,11 @@ def time_array_equal(x, y):
return False
elif (len(x) == 0) or (len(y) == 0):
return x == y
return np.all(_vto_datetime(x) == _vto_datetime(y))
try:
return np.all(_vto_datetime(x) == _vto_datetime(y))
except TypeError:
# NOTE: Needed for EarthNetworks DatetimeIndex
return np.all(pd.to_datetime(x) == pd.to_datetime(y))

def equal_value(a, b):
if (a is None) and (b is None):
Expand Down
Loading

0 comments on commit ed8505c

Please sign in to comment.