File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 12
12
import os
13
13
14
14
# version
15
- __version__ = "0.0.5 "
15
+ __version__ = "0.0.6 "
16
16
17
17
# since this software is installed centrally and may be updated
18
18
# this section of code stores the xsearch version in a hidden
Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ def findPaths(experiment,
140
140
deduplicate = True ,
141
141
printDuplicates = False ,
142
142
lcpath = False ,
143
+ nimbuspath = False ,
143
144
filterRetired = True ,
144
145
filterRetracted = True ,
145
146
filterIgnored = True ,
@@ -159,6 +160,7 @@ def findPaths(experiment,
159
160
where version is the string version_id, timepoints is the number of time steps, and
160
161
creation_date is the creation date in the dataset header
161
162
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)
162
164
deduplicate Bool: flag to de-duplicate datasets for the same model/realization
163
165
filterRetracted Bool: flag to ignore retracted datasets (if True; default True)
164
166
filterIgnored Bool: flag to ignore datasets marked as ignored (if True; default True)
@@ -178,6 +180,8 @@ def findPaths(experiment,
178
180
fn = jsonDir + experiment + '/' + variable + '.json'
179
181
if lcpath :
180
182
fn = fn .replace ('/p/' , '/p/climate/' )
183
+ if nimbuspath :
184
+ fn = fn .replace ('/p/' , '/home/jovyan/local-data/' )
181
185
# load data
182
186
files = glob .glob (fn )
183
187
# loop over all json files and store
You can’t perform that action at this time.
0 commit comments