Changeset 45b6bfb in sasview for sansguiframe/src/sans


Ignore:
Timestamp:
Nov 14, 2011 3:24:53 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
2d74016
Parents:
2605b879
Message:

fixed a bug not saving a model values as txt

File:
1 edited

Legend:

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

    rc0e747c r45b6bfb  
    633633                    has_errors = False 
    634634            if has_errors: 
    635                 if data.dx != None or data.dx != []: 
     635                if data.dx != None and data.dx != []: 
    636636                    out.write("<X>   <Y>   <dY>   <dX>\n") 
    637637                else: 
     
    642642            for i in range(len(data.x)): 
    643643                if has_errors: 
    644                     if data.dx != None or data.dx != []: 
     644                    if data.dx != None and data.dx != []: 
    645645                        out.write("%g  %g  %g  %g\n" % (data.x[i],  
    646646                                                    data.y[i], 
Note: See TracChangeset for help on using the changeset viewer.