Ignore:
Timestamp:
12/18/19 15:46:35 (5 years ago)
Author:
bduin
Message:
 
Location:
prdatasets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • prdatasets

    • Property svn:ignore
      •  

        old new  
        33*.data
        44*.asv
         5data
  • prdatasets/pr_download.m

    r136 r137  
    9393%% find directory to be used
    9494if isempty(datname)
    95   datname = callername;
     95  datname = pr_callername;
    9696  dirname = fullfile(fileparts(which(datname)),'data');
    9797else
     
    212212  a = setname(a,opt.dsetname);
    213213else
    214   a = setname(a,callername);
     214  a = setname(a,pr_callername);
    215215end
    216216
     
    224224
    225225
    226 function ask_download(urlname,size)
     226function ask_download(urlname,datsize)
    227227%% user controlled downloading
    228228  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)'];
    236233    else
    237234      siz = '';
     
    297294return
    298295
    299 function name = callername
    300 %%
    301 [ss,~] = dbstack;
    302 if length(ss) < 3
    303         name = [];
    304 else
    305         name = ss(3).name;
    306 end
    307 
    308296function [a,new] = pr_download_old(url,varargin)
    309297%% This is the old version of pr_download, to be called from the old
     
    448436disp('Parsing ...')
    449437c = mytextscan(fid,strrep(form,'n','s'),del,nhead);
    450 a = cell2dset(c,form,misval);
     438a = pr_cell2dset(c,form,misval);
    451439
    452440if ~nosave % don't save if not needed (e.g. called by pr_download_uci)
Note: See TracChangeset for help on using the changeset viewer.