Skip to content

Commit 616e471

Browse files
committed
enable nc2rdf for urls
1 parent 80347e4 commit 616e471

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/bald/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,10 @@ def load(afilepath):
670670
loader = netCDF4.Dataset
671671
else:
672672
raise ValueError('filepath suffix not supported: {}'.format(afilepath))
673-
if not os.path.exists(afilepath):
674-
raise IOError('{} not found'.format(afilepath))
673+
#Disable this check for now to allow URL input
674+
#TODO: Add feature to check both local files and files on the web, e.g. URLs
675+
#if not os.path.exists(afilepath):
676+
# raise IOError('{} not found'.format(afilepath))
675677
try:
676678
f = loader(afilepath, "r")
677679
yield f

0 commit comments

Comments
 (0)