Ignore:
Timestamp:
12/22/19 17:46:08 (5 years ago)
Author:
bduin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • prdatasets/pr_getdata.m

    r137 r140  
    3636%  ddir  : becomes full path of dataset
    3737name = pr_callername;
    38 argin = setdefaults(varargin,[],[],[],[],true);
     38argin = setdefaults(varargin,[],[],[],[],[]);
    3939[url,size,dset,field,ask] = deal(argin{:});
     40if isempty(ask)
     41  if isempty(size)
     42    ask = false;
     43  else
     44    ask = true;
     45  end
     46end
    4047
    4148if isempty(url)
     
    6269if isempty(out)
    6370  if ask
    64     ask_download(size)
     71    ask_download(name,size)
    6572  end
    6673  % download in dir of dset
     
    8895end
    8996 
    90 function ask_download(size)
     97function ask_download(name,size)
    9198
    9299  global ASK
     
    101108      siz = '';
    102109    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');
    104111    if ~isempty(q) && ~strcmp(q,'y')
    105112      error('Dataset not found')
Note: See TracChangeset for help on using the changeset viewer.