Skip to content

Commit dc595a6

Browse files
committed
add nimbus support
1 parent 346d39f commit dc595a6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

xsearch/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import os
1313

1414
# version
15-
__version__ = "0.0.5"
15+
__version__ = "0.0.6"
1616

1717
# since this software is installed centrally and may be updated
1818
# this section of code stores the xsearch version in a hidden

xsearch/search.py

+4
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def findPaths(experiment,
140140
deduplicate=True,
141141
printDuplicates=False,
142142
lcpath=False,
143+
nimbuspath=False,
143144
filterRetired=True,
144145
filterRetracted=True,
145146
filterIgnored=True,
@@ -159,6 +160,7 @@ def findPaths(experiment,
159160
where version is the string version_id, timepoints is the number of time steps, and
160161
creation_date is the creation date in the dataset header
161162
lcpath Bool: flag to denote whether search is on an LC system (data path is different on LC systems)
163+
nimbuspath Bool: flag to denote search is on an Nimbus system (data path is different on Nimbus)
162164
deduplicate Bool: flag to de-duplicate datasets for the same model/realization
163165
filterRetracted Bool: flag to ignore retracted datasets (if True; default True)
164166
filterIgnored Bool: flag to ignore datasets marked as ignored (if True; default True)
@@ -178,6 +180,8 @@ def findPaths(experiment,
178180
fn = jsonDir + experiment + '/' + variable + '.json'
179181
if lcpath:
180182
fn = fn.replace('/p/', '/p/climate/')
183+
if nimbuspath:
184+
fn = fn.replace('/p/', '/home/jovyan/local-data/')
181185
# load data
182186
files = glob.glob(fn)
183187
# loop over all json files and store

0 commit comments

Comments
 (0)