Changeset 9c0f3c17 in sasview for src/sas/sasgui/perspectives/simulation
- Timestamp:
- Apr 4, 2017 12:50:04 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:
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/simulation/simulation.py
r463e7ffc r9c0f3c17 10 10 import wx 11 11 import os 12 import numpy 12 import numpy as np 13 13 import time 14 14 import logging … … 48 48 def compute(self): 49 49 x = self.x 50 output = n umpy.zeros(len(x))51 error = n umpy.zeros(len(x))50 output = np.zeros(len(x)) 51 error = np.zeros(len(x)) 52 52 53 53 self.starttime = time.time() … … 125 125 # Q-values for plotting simulated I(Q) 126 126 step = (self.q_max-self.q_min)/(self.q_npts-1) 127 self.x = n umpy.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) 128 128 129 129 # Set the list of panels that are part of the simulation perspective … … 189 189 # Q-values for plotting simulated I(Q) 190 190 step = (self.q_max-self.q_min)/(self.q_npts-1) 191 self.x = n umpy.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) 192 192 193 193 # Compute the simulated I(Q)
Note: See TracChangeset
for help on using the changeset viewer.