Changeset 140 for prdatasets/pr_getdata.m
- Timestamp:
- 12/22/19 17:46:08 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prdatasets/pr_getdata.m
r137 r140 36 36 % ddir : becomes full path of dataset 37 37 name = pr_callername; 38 argin = setdefaults(varargin,[],[],[],[], true);38 argin = setdefaults(varargin,[],[],[],[],[]); 39 39 [url,size,dset,field,ask] = deal(argin{:}); 40 if isempty(ask) 41 if isempty(size) 42 ask = false; 43 else 44 ask = true; 45 end 46 end 40 47 41 48 if isempty(url) … … 62 69 if isempty(out) 63 70 if ask 64 ask_download( size)71 ask_download(name,size) 65 72 end 66 73 % download in dir of dset … … 88 95 end 89 96 90 function ask_download( size)97 function ask_download(name,size) 91 98 92 99 global ASK … … 101 108 siz = ''; 102 109 end 103 q = input(['Dataset is not available, OK to download ' siz ' [y]/n ?'],'s');110 q = input(['Dataset ' name ' is not available, OK to download ' siz ' [y]/n ?'],'s'); 104 111 if ~isempty(q) && ~strcmp(q,'y') 105 112 error('Dataset not found')
Note: See TracChangeset
for help on using the changeset viewer.