Changeset 1218


Ignore:
Timestamp:
Jun 30, 2022 8:59:07 PM (3 months ago)
Author:
ilavsky
Message:

Fix liberal names saving in Data Man III

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/User Procedures/Irena/IR3_DataManipulationIII.ipf

    r1169 r1218  
    22#pragma rtGlobals=3                             // Use modern global access method and strict wave access
    33#pragma DefaultTab={3,20,4}             // Set default tab width in Igor Pro 9 and later
    4 #pragma version=1.02
     4#pragma version=1.03
    55
    66
     
    99
    1010//Version notes:
     11//1.03 fix IR3DM_AverageSaveData to be able to save liiberal names data (e.g., starting with numbers)
    1112//1.02 fix Process data - trim
    1213//1.01 add handling of USAXS M_... waves
    1314//1.00 first usable version.
    14 
    15 //TODO: Need to add action function to Process data, for now it does not exist.
    1615//
    1716/////******************************************************************************************
     
    220219                                IR3DM_SetupControlsOnMainpanel()
    221220                        endif
    222                         if(stringmatch(cba.ctrlName,"ProcessData"))
     221                        if(stringmatch(cba.ctrlName,"AverageData"))
    223222                                DeleteData  = 0
    224                                 AverageData =  !ProcessData
     223                                ProcessData =  !AverageData
    225224                                if(!DeleteData)
    226225                                        IR3DM_CreateDM3Graphs()
     
    228227                                IR3DM_SetupControlsOnMainpanel()
    229228                        endif
    230                         if(stringmatch(cba.ctrlName,"AverageData"))
     229
     230                        if(stringmatch(cba.ctrlName,"ProcessData"))
    231231                                DeleteData  = 0
    232                                 ProcessData =  !AverageData
     232                                AverageData =  !ProcessData
    233233                                if(!DeleteData)
    234234                                        IR3DM_CreateDM3Graphs()
     
    998998        //and now I need to save the data
    999999        variable Overwrite = 0
    1000         OutFldrNm=SaveDataToFolderFull+SaveDataToFolder
     1000        OutFldrNm=SaveDataToFolderFull+possiblyQuoteName(SaveDataToFolder)
    10011001        if(DataFolderExists(OutFldrNm)&&!Overwrite)
    10021002                DoAlert /T="Folder for Average data exists" 1, "Folder "+OutFldrNm+" exists, do you want to overwrite?"
Note: See TracChangeset for help on using the changeset viewer.