Ignore:
Timestamp:
Dec 4, 2018 7:37:38 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_sync_sascalc
Children:
0989bad
Parents:
d9e7792
Message:

Improvements to batch save/load SASVIEW-1222.
Project save/load will now recreate the grid window as well as retain
result theories under dataset indices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataExplorer.py

    rd9e7792 r99f8760  
    354354            properties['checked'] = is_checked 
    355355            other_datas = [] 
    356             # no need to save other_datas - things will be refit on read 
    357             #other_datas = GuiUtils.plotsFromFilename(filename, model) 
     356            # save underlying theories 
     357            other_datas = GuiUtils.plotsFromFilename(filename, model) 
    358358            # skip the main plot 
    359             #other_datas = list(other_datas.values())[1:] 
     359            other_datas = list(other_datas.values())[1:] 
    360360            all_data[data.id] = [data, properties, other_datas] 
    361361        return all_data 
     
    457457            if key=='is_batch': 
    458458                self.chkBatch.setChecked(True if value=='True' else False) 
     459                if 'batch_grid' not in all_data: 
     460                    continue 
     461                grid_pages = all_data['batch_grid'] 
     462                for grid_name, grid_page in grid_pages.items(): 
     463                    grid_page.append(grid_name) 
     464                    self.parent.showBatchOutput(grid_page) 
    459465                continue 
    460466            if 'cs_tab' in key: 
Note: See TracChangeset for help on using the changeset viewer.