Ignore:
Timestamp:
Oct 12, 2011 1:29:29 PM (13 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
7db52f1
Parents:
47d9be79
Message:

make sure we dont index and empty list for data.dx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py

    r4904062 r18253cd  
    626626                    has_errors = False 
    627627            if has_errors: 
    628                 if data.dx != None: 
     628                if data.dx != None or data.dx != []: 
    629629                    out.write("<X>   <Y>   <dY>   <dX>\n") 
    630630                else: 
     
    635635            for i in range(len(data.x)): 
    636636                if has_errors: 
    637                     if data.dx != None: 
     637                    if data.dx != None or data.dx != []: 
    638638                        out.write("%g  %g  %g  %g\n" % (data.x[i],  
    639639                                                    data.y[i], 
Note: See TracChangeset for help on using the changeset viewer.