Ignore:
Timestamp:
Nov 7, 2008 11:50:03 AM (16 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:
1f62278
Parents:
35d1092
Message:

bug list added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitting.py

    r57668f8 r0550752  
    11import os,os.path, re 
    22import sys, wx, logging 
    3 import string, numpy,  math 
     3import string, numpy, math 
    44 
    55from copy import deepcopy  
     
    578578             draw model with default data value 
    579579        """ 
    580         x = pylab.arange(0.001, 0.1, 0.001) 
     580        x = numpy.arange(0.001, 0.1, 0.001) 
    581581        xlen = len(x) 
    582         dy = numpy.zeros(xlen) 
    583582        y = numpy.zeros(xlen) 
    584583         
    585584        for i in range(xlen): 
    586585            y[i] = model.run(x[i]) 
    587             dy[i] = math.sqrt(math.fabs(y[i])) 
     586 
    588587        try: 
    589588            new_plot = Theory1D(x, y) 
     
    591590            new_plot.xaxis("\\rm{Q}", 'A^{-1}') 
    592591            new_plot.yaxis("\\rm{Intensity} ","cm^{-1}") 
     592              
    593593            new_plot.group_id ="Fitness" 
    594594            wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, title="Analytical model")) 
Note: See TracChangeset for help on using the changeset viewer.