Changeset 9a5097c in sasview for src/sas/sasgui/perspectives/simulation
- Timestamp:
- Mar 26, 2017 11:33:16 PM (8 years ago)
- 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:
- ed2276f
- Parents:
- 9146ed9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/simulation/simulation.py
rd85c194 r9a5097c 10 10 import wx 11 11 import os 12 import numpy 12 import numpy as np 13 13 import time 14 14 import logging … … 46 46 def compute(self): 47 47 x = self.x 48 output = n umpy.zeros(len(x))49 error = n umpy.zeros(len(x))48 output = np.zeros(len(x)) 49 error = np.zeros(len(x)) 50 50 51 51 self.starttime = time.time() … … 123 123 # Q-values for plotting simulated I(Q) 124 124 step = (self.q_max-self.q_min)/(self.q_npts-1) 125 self.x = n umpy.arange(self.q_min, self.q_max+step*0.01, step)125 self.x = np.arange(self.q_min, self.q_max+step*0.01, step) 126 126 127 127 # Set the list of panels that are part of the simulation perspective … … 187 187 # Q-values for plotting simulated I(Q) 188 188 step = (self.q_max-self.q_min)/(self.q_npts-1) 189 self.x = n umpy.arange(self.q_min, self.q_max+step*0.01, step)189 self.x = np.arange(self.q_min, self.q_max+step*0.01, step) 190 190 191 191 # Compute the simulated I(Q)
Note: See TracChangeset
for help on using the changeset viewer.