Ignore:
Timestamp:
Jul 21, 2016 6:41:46 AM (8 years ago)
Author:
lewis
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
eb8da5f
Parents:
ea2a7348
Message:

Create own CansasReader? subcless in preparation for writing multiple frames

Location:
src/sas/sasgui/perspectives/file_converter
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/file_converter/converter_panel.py

    rea2a7348 r8976865  
    1818from sas.sasgui.guiframe.dataFitting import Data1D 
    1919from sas.sasgui.guiframe.utils import check_float 
    20 from sas.sascalc.dataloader.readers.cansas_reader import Reader as CansasReader 
     20from sas.sasgui.perspectives.file_converter.cansas_writer import CansasWriter 
    2121from sas.sasgui.perspectives.file_converter.bsl_loader import BSLLoader 
    2222from sas.sascalc.dataloader.data_info import Detector 
     
    7272        self.Layout() 
    7373 
    74     def convert_to_cansas(self, data, filename): 
    75         reader = CansasReader() 
     74    def convert_to_cansas(self, frame_data, filename): 
     75        reader = CansasWriter() 
    7676        entry_attrs = None 
    7777        if self.run_name is not None: 
    7878            entry_attrs = { 'name': self.run_name } 
    79         reader.write(filename, data, 
     79        reader.write(filename, frame_data, 
    8080            sasentry_attrs=entry_attrs) 
    8181 
Note: See TracChangeset for help on using the changeset viewer.