Ignore:
Timestamp:
Jul 31, 2017 7:25:56 AM (7 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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
a78433dd
Parents:
fafe52a
Message:

Refactor red_2d_reader to use FileReader? class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/dataloader/file_reader_base_class.py

    r9d786e5 r2f85af7  
    155155                    dataset.y_bins = dataset.qy_data[0::int(n_cols)] 
    156156                    dataset.x_bins = dataset.qx_data[:int(n_cols)] 
    157                     dataset.data = dataset.data.flatten() 
    158                 else: 
    159                     dataset.y_bins = [] 
    160                     dataset.x_bins = [] 
    161                     dataset.data = dataset.data.flatten() 
     157                dataset.data = dataset.data.flatten() 
    162158                final_list.append(dataset) 
    163159        self.output = final_list 
Note: See TracChangeset for help on using the changeset viewer.