Ignore:
Timestamp:
Apr 4, 2017 10:50:04 AM (7 years ago)
Author:
Ricardo Ferraz Leal <ricleal@…>
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:
f2940c4
Parents:
463e7ffc (diff), 1779e72 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

After merge conflict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/simulation/simulation.py

    r463e7ffc r9c0f3c17  
    1010import wx 
    1111import os 
    12 import numpy 
     12import numpy as np 
    1313import time 
    1414import logging 
     
    4848    def compute(self): 
    4949        x = self.x 
    50         output = numpy.zeros(len(x)) 
    51         error = numpy.zeros(len(x)) 
     50        output = np.zeros(len(x)) 
     51        error = np.zeros(len(x)) 
    5252         
    5353        self.starttime = time.time() 
     
    125125        # Q-values for plotting simulated I(Q) 
    126126        step = (self.q_max-self.q_min)/(self.q_npts-1) 
    127         self.x = numpy.arange(self.q_min, self.q_max+step*0.01, step)         
     127        self.x = np.arange(self.q_min, self.q_max+step*0.01, step) 
    128128         
    129129        # Set the list of panels that are part of the simulation perspective 
     
    189189        # Q-values for plotting simulated I(Q) 
    190190        step = (self.q_max-self.q_min)/(self.q_npts-1) 
    191         self.x = numpy.arange(self.q_min, self.q_max+step*0.01, step)     
     191        self.x = np.arange(self.q_min, self.q_max+step*0.01, step) 
    192192          
    193193        # Compute the simulated I(Q) 
Note: See TracChangeset for help on using the changeset viewer.