Ignore:
Timestamp:
Mar 28, 2016, 9:15:18 PM (5 years ago)
Author:
sommeria
Message:

various improvments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/extract_rdvision.m

    r932 r935  
    469469NbDti=size(timestamp,1); %default for series or burst
    470470uid_motor_nbslice=find(t,'ImaDoc/TranslationMotor/Nbslice');
    471 if ~isempty(uid_motor_nbslice)
     471uid_nbDtk=find(t,'ImaDoc/TranslationMotor/NbDtk');
     472if ~isempty(uid_motor_nbslice)&& ~isempty(uid_nbDtk)
    472473    uid_content=get(t,uid_motor_nbslice,'contents');
    473474    NbSlice=str2num(get(t,uid_content,'value'));
    474475    NbDti=NbSlice-1;
    475 uid_NbDti=find(t,'ImaDoc/Camera/BurstTiming/NbDti');
    476 uid_content=get(t,uid_NbDti,'contents');
    477 t=set(t,uid_content,'value',num2str(NbDti));
     476    uid_NbDti=find(t,'ImaDoc/Camera/BurstTiming/NbDti');
     477    uid_content=get(t,uid_NbDti,'contents');
     478    t=set(t,uid_content,'value',num2str(NbDti));
    478479end
    479480
     
    510511       [success,msg] = fileattrib(newxml,'+w','g');% allow writing access for the group of users 
    511512        if success==0
    512             msgbox_uvmat('WARNING',{['unable to set group write access to ' newxml ':']; msg1});%error message for directory creation
     513            msgbox_uvmat('WARNING',{['unable to set group write access to ' newxml ':']; msg});%error message for directory creation
    513514        end
    514515
Note: See TracChangeset for help on using the changeset viewer.