Changes in src/sas/sasgui/perspectives/simulation/simulation.py [9a5097c:463e7ffc] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/simulation/simulation.py
r9a5097c r463e7ffc 10 10 import wx 11 11 import os 12 import numpy as np12 import numpy 13 13 import time 14 14 import logging … … 24 24 from sas.sascalc.data_util.calcthread import CalcThread 25 25 from sas.guicomm.events import NewPlotEvent, StatusEvent 26 27 logger = logging.getLogger(__name__) 26 28 27 29 class Calc1D(CalcThread): … … 46 48 def compute(self): 47 49 x = self.x 48 output = n p.zeros(len(x))49 error = n p.zeros(len(x))50 output = numpy.zeros(len(x)) 51 error = numpy.zeros(len(x)) 50 52 51 53 self.starttime = time.time() … … 93 95 self._default_save_location = os.getcwd() 94 96 # Log startup 95 logg ing.info("Simulation plug-in started")97 logger.info("Simulation plug-in started") 96 98 97 99 def get_panels(self, parent): … … 123 125 # Q-values for plotting simulated I(Q) 124 126 step = (self.q_max-self.q_min)/(self.q_npts-1) 125 self.x = n p.arange(self.q_min, self.q_max+step*0.01, step)127 self.x = numpy.arange(self.q_min, self.q_max+step*0.01, step) 126 128 127 129 # Set the list of panels that are part of the simulation perspective … … 187 189 # Q-values for plotting simulated I(Q) 188 190 step = (self.q_max-self.q_min)/(self.q_npts-1) 189 self.x = n p.arange(self.q_min, self.q_max+step*0.01, step)191 self.x = numpy.arange(self.q_min, self.q_max+step*0.01, step) 190 192 191 193 # Compute the simulated I(Q)
Note: See TracChangeset
for help on using the changeset viewer.