Changeset 204f628 in sasview
- Timestamp:
- Aug 23, 2016 4:22:47 AM (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.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 839e5e3
- Parents:
- f56770ef
- Location:
- src/sas/sasgui/perspectives/corfunc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/corfunc/corfunc.py
r6ffa0dd r204f628 167 167 group_id = GROUP_ID_IQ_DATA 168 168 if label == IQ_EXTRAPOLATED_DATA_LABEL: 169 # Show the extrapolation as a curve instead of points 169 170 new_plot.symbol = GUIFRAME_ID.CURVE_SYMBOL_NUM 170 171 elif label == TRANSFORM_LABEL: … … 172 173 new_plot.yaxis("{\\Gamma}", '') 173 174 group_id = GROUP_ID_TRANSFORM 175 # Show the transformation as a curve instead of points 174 176 new_plot.symbol = GUIFRAME_ID.CURVE_SYMBOL_NUM 175 177 new_plot.id = label … … 188 190 leftdown=True) 189 191 if label == IQ_EXTRAPOLATED_DATA_LABEL: 192 # Zoom in to the region we're interested in 190 193 xlim = (min(self.corfunc_panel._extrapolated_data.x), self.corfunc_panel.qmax[1]*1.2) 191 194 wx.CallAfter(wx.PostEvent, self.parent, PlotLimitEvent(id=IQ_DATA_LABEL, group_id=GROUP_ID_IQ_DATA, xlim=xlim)) … … 202 205 return 203 206 data = panel.plots[panel.graph.selected_plottable] 204 print "Data id is: {}".format(data.id)205 207 self.set_data([data]) -
src/sas/sasgui/perspectives/corfunc/corfunc_panel.py
reb886c2 r204f628 178 178 179 179 def radio_changed(self, event=None): 180 """ 181 Called when the "Transform type" radio button are changed 182 """ 180 183 if event is not None: 181 184 self.transform_type = event.GetEventObject().GetName() … … 275 278 276 279 def extract_parameters(self, event=None): 280 """ 281 Called when "Extract Parameters" is clicked 282 """ 277 283 try: 278 284 params = self._calculator.extract_parameters(self._transformed_data) … … 329 335 330 336 def set_extrapolation_params(self, params=None): 337 """ 338 Displays the value of the parameters calculated in the extrapolation 339 """ 331 340 if params is None: 332 341 # Reset outputs … … 341 350 342 351 def set_extracted_params(self, params=None, reset=False): 352 """ 353 Displays the values of the parameters extracted from the Fourier 354 transform 355 """ 343 356 self.extracted_params = params 344 357 error = False … … 369 382 370 383 def _compute_background(self, event=None): 384 """ 385 Compute the background level based on the position of the upper q bars 386 """ 371 387 if event is not None: 372 388 event.Skip()
Note: See TracChangeset
for help on using the changeset viewer.