Changeset 76cd1ae in sasview for src/sans/guiframe/gui_manager.py


Ignore:
Timestamp:
Jan 14, 2014 3:53:36 PM (11 years ago)
Author:
Jeff Krzywon <jeffery.krzywon@…>
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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
16bd5ca
Parents:
083e993
Message:

Fix for the datainfo window not loading and bug fixes for the cansas data reader.

Fixes/changes:
(1) datainfo window is now loading for every data file I can test
(2) transmission spectrum information (but not data) is listed in datainfo window
(3) more than one transmission spectra can be loaded for each Data1D object
(4) fixed a bug in the cansas reader that allowed any file to be loaded as data if and only if another data file was already loaded
(5) fixed the cansas writer to include transmission spectrum data and output data in strict canSAS format
(6) increased the pylint score of cansas_constants.py to above 7
(7) increased the pylint score for all files I have modified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sans/guiframe/gui_manager.py

    r1c1b037 r76cd1ae  
    24852485                                       info="error")) 
    24862486            raise ValueError, msg 
    2487         text = data.__str__()  
     2487        ## text = str(data) 
     2488        text = data.__str__() 
    24882489        text += 'Data Min Max:\n' 
    24892490        text += 'X_min = %s:  X_max = %s\n'% (xmin, max(data.x)) 
     
    24942495        x_st = "X" 
    24952496        for index in range(len(data.x)): 
    2496             if data.dy != None: 
     2497            if data.dy != None and len(data.dy) > index: 
    24972498                dy_val = data.dy[index] 
    24982499            else: 
    24992500                dy_val = 0.0 
    2500             if data.dx != None: 
     2501            if data.dx != None and len(data.dx) > index: 
    25012502                dx_val = data.dx[index] 
    25022503            else: 
    25032504                dx_val = 0.0 
    2504             if data.dxl != None: 
     2505            if data.dxl != None and len(data.dxl) > index: 
    25052506                if index == 0:  
    25062507                    x_st = "Xl" 
    25072508                dx_val = data.dxl[index] 
    2508             elif data.dxw != None: 
     2509            elif data.dxw != None and len(data.dxw) > index: 
    25092510                if index == 0:  
    25102511                    x_st = "Xw" 
Note: See TracChangeset for help on using the changeset viewer.