Changeset 137 for prdatasets/pr_download.m
- Timestamp:
- 12/18/19 15:46:35 (5 years ago)
- Location:
- prdatasets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
prdatasets
- Property svn:ignore
-
old new 3 3 *.data 4 4 *.asv 5 data
-
- Property svn:ignore
-
prdatasets/pr_download.m
r136 r137 93 93 %% find directory to be used 94 94 if isempty(datname) 95 datname = callername;95 datname = pr_callername; 96 96 dirname = fullfile(fileparts(which(datname)),'data'); 97 97 else … … 212 212 a = setname(a,opt.dsetname); 213 213 else 214 a = setname(a, callername);214 a = setname(a,pr_callername); 215 215 end 216 216 … … 224 224 225 225 226 function ask_download(urlname, size)226 function ask_download(urlname,datsize) 227 227 %% user controlled downloading 228 228 global ASK 229 if isempty(ASK) 230 ASK = true; 231 end 232 233 if ASK 234 if ~isempty(size) && size ~= 0 235 siz = ['(' num2str(size) ' MB)']; 229 230 if ASK && ~isempty(datsize) % ask only if datsize has been set 231 if datsize ~= 0 232 siz = ['(' num2str(datsize) ' MB)']; 236 233 else 237 234 siz = ''; … … 297 294 return 298 295 299 function name = callername300 %%301 [ss,~] = dbstack;302 if length(ss) < 3303 name = [];304 else305 name = ss(3).name;306 end307 308 296 function [a,new] = pr_download_old(url,varargin) 309 297 %% This is the old version of pr_download, to be called from the old … … 448 436 disp('Parsing ...') 449 437 c = mytextscan(fid,strrep(form,'n','s'),del,nhead); 450 a = cell2dset(c,form,misval);438 a = pr_cell2dset(c,form,misval); 451 439 452 440 if ~nosave % don't save if not needed (e.g. called by pr_download_uci)
Note: See TracChangeset
for help on using the changeset viewer.