Skip to content

Commit 119b1a7

Browse files
committed
remove terra
1 parent aabb2e2 commit 119b1a7

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

.travis.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ install:
1717
- conda install --quiet --file requirements.txt
1818
- conda list
1919
- conda info -a
20-
- wget https://github.com/marqh/terra/archive/master.zip
21-
- unzip master.zip
22-
- cd terra-master
23-
- python setup.py --quiet install
24-
- cd ..
2520
- python setup.py --quiet install
2621

2722
script:

lib/bald/__init__.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,7 @@
1818
import requests
1919
import six
2020

21-
# try:
22-
# #import terra.datetime
23-
# from terra import datetime
24-
# terra_imp = True
25-
# except ImportError:
26-
# terra_imp = False
27-
2821
from bald import datetime
29-
terra_imp = True
3022
import bald.validation as bv
3123

3224
__version__ = '0.3'
@@ -607,7 +599,7 @@ def rdfnode(self, graph):
607599
if is_http_uri(rdfobj):
608600

609601
rdfobj = rdflib.URIRef(rdfobj)
610-
elif terra_imp and isinstance(rdfobj, datetime.EpochDateTimes):
602+
elif isinstance(rdfobj, datetime.EpochDateTimes):
611603
rdfobj = rdflib.Literal(str(rdfobj), datatype=rdflib.XSD.dateTime)
612604
elif isinstance(rdfobj, float):
613605
rdfobj = rdflib.Literal(float(rdfobj), datatype=rdflib.XSD.decimal)
@@ -930,7 +922,7 @@ def load_netcdf(afilepath, baseuri=None, alias_dict=None, cache=None, file_locat
930922
sattrs['bald__last_value'] = float(sattrs['bald__last_value'])
931923

932924
# datetime special case
933-
if 'units' in fhandle.variables[name].ncattrs() and terra_imp:
925+
if 'units' in fhandle.variables[name].ncattrs():
934926
ustr = fhandle.variables[name].getncattr('units')
935927
pattern = '^([a-z]+) since ([0-9T:\\. -]+)'
936928

0 commit comments

Comments
 (0)