Changeset 90b9a17 in sasview for invariantview/perspectives/invariant
- Timestamp:
- Jun 10, 2010 2:10:01 PM (14 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.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:
- 8c3856b
- Parents:
- 1b43306
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_panel.py
rd7a39e5 r90b9a17 18 18 # The maximum q-value to be used when extrapolating 19 19 Q_MAXIMUM = 10 20 # the maximum valueto plot the theory data21 Q_MAXIMUM_PLOT = 220 # the ratio of maximum q value/(qmax of data) to plot the theory data 21 Q_MAXIMUM_PLOT = 3 22 22 # the number of points to consider during fit 23 23 NPTS = 10 … … 70 70 self._scale = SCALE 71 71 self._background = BACKGROUND 72 72 73 #container of invariant value 73 74 self.inv_container = None … … 278 279 if high_q: 279 280 try: 281 qmax_plot = Q_MAXIMUM_PLOT * max(self._data.x) 282 if qmax_plot > Q_MAXIMUM: qmax_plot = Q_MAXIMUM 280 283 qstar_high, qstar_high_err = inv.get_qstar_high() 281 284 self.inv_container.qstar_high = qstar_high … … 283 286 power_high = inv.get_extrapolation_power(range='high') 284 287 self.power_high_tcl.SetValue(format_number(power_high)) 285 high_out_data = inv.get_extra_data_high(q_end= Q_MAXIMUM_PLOT)288 high_out_data = inv.get_extra_data_high(q_end=qmax_plot,npts=500) 286 289 self._manager.plot_theory(data=high_out_data, 287 290 name="High-Q extrapolation")
Note: See TracChangeset
for help on using the changeset viewer.