Changeset bd3a3ae in sasview for src/sas/sasgui/perspectives
- Timestamp:
- Jan 5, 2019 7:15:46 PM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249
- Children:
- f632247
- Parents:
- 73bc8563
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitpage.py
r73bc8563 rbd3a3ae 215 215 smear_message_2d_x_title = "<dQp>[1/A]:" 216 216 smear_message_2d_y_title = "<dQs>[1/A]:" 217 smear_message_pinhole_percent_title = "dQ[%]:" 217 smear_message_pinhole_percent_min_title = "[dQ/Q]min(%):" 218 smear_message_pinhole_percent_max_title = "[dQ/Q]max(%):" 219 smear_message_pinhole_percent_title = "dQ/Q(%):" 218 220 smear_message_slit_height_title = "Slit height[1/A]:" 219 221 smear_message_slit_width_title = "Slit width[1/A]:" … … 423 425 self.smear_description_2d_y.SetToolTipString( 424 426 " dQs(perpendicular) in q_phi direction.") 427 self.smear_description_pin_percent_min = wx.StaticText(self, wx.ID_ANY, 428 smear_message_pinhole_percent_min_title, 429 style=wx.ALIGN_LEFT) 430 self.smear_description_pin_percent_max = wx.StaticText(self, wx.ID_ANY, 431 smear_message_pinhole_percent_max_title, 432 style=wx.ALIGN_LEFT) 425 433 self.smear_description_pin_percent = wx.StaticText(self, wx.ID_ANY, 426 434 smear_message_pinhole_percent_title, … … 449 457 self.sizer_new_smear.Add((15, -1)) 450 458 self.sizer_new_smear.Add(self.smear_description_2d_x, 0, wx.CENTER, 10) 459 self.sizer_new_smear.Add(self.smear_description_pin_percent_min, 460 0, wx.CENTER, 10) 461 self.sizer_new_smear.Add(self.smear_description_pin_percent, 462 0, wx.CENTER, 10) 451 463 self.sizer_new_smear.Add(self.smear_description_slit_height, 452 464 0, wx.CENTER, 10) 453 465 466 self.sizer_new_smear.Add(self.smear_pinhole_percent, 0, wx.CENTER, 10) 454 467 self.sizer_new_smear.Add(self.smear_slit_height, 0, wx.CENTER, 10) 455 468 self.sizer_new_smear.Add(self.smear_data_left, 0, wx.CENTER, 10) … … 457 470 self.sizer_new_smear.Add(self.smear_description_2d_y, 458 471 0, wx.CENTER, 10) 459 self.sizer_new_smear.Add(self.smear_description_pin_percent ,472 self.sizer_new_smear.Add(self.smear_description_pin_percent_max, 460 473 0, wx.CENTER, 10) 461 474 self.sizer_new_smear.Add(self.smear_description_slit_width, 462 475 0, wx.CENTER, 10) 463 476 464 self.sizer_new_smear.Add(self.smear_pinhole_percent, 0, wx.CENTER, 10)465 477 self.sizer_new_smear.Add(self.smear_slit_width, 0, wx.CENTER, 10) 466 478 self.sizer_new_smear.Add(self.smear_data_right, 0, wx.CENTER, 10) … … 1629 1641 self.smear_type = "Pinhole" 1630 1642 #report in % for display makes more sense than absolute value 1631 #for pinhole smearing 1643 #for pinhole smearing. Keep old names of dq_l rather than 1644 #dq_percent_l as it is close entough, minimizez changes, 1645 #particularly since both slit AND pinhole are using these variables. 1632 1646 self.dq_l = data.dx[0] / data.x[0] * 100 1633 1647 self.dq_r = data.dx[-1] / data.x[-1] * 100 … … 1669 1683 self.smear_description_slit_width.Show(True) 1670 1684 elif self.smear_type == 'Pinhole': 1671 self.smear_description_pin_percent.Show(True) 1685 self.smear_description_pin_percent_min.Show(True) 1686 self.smear_description_pin_percent_max.Show(True) 1672 1687 self.smear_description_smear_type.Show(True) 1673 1688 self.smear_description_type.Show(True) … … 1676 1691 # custom pinhole smear 1677 1692 elif self.pinhole_smearer.GetValue(): 1678 if self.smear_type == 'Pinhole':1679 1680 1681 1693 # if self.smear_type == 'Pinhole': 1694 self.smear_message_new_p.Show(True) 1695 self.smear_description_pin_percent.Show(True) 1696 #note - was outside of above commented out if statement 1682 1697 self.smear_pinhole_percent.Show(True) 1683 1698 # custom slit smear … … 1705 1720 self.smear_data_left.Hide() 1706 1721 self.smear_data_right.Hide() 1722 self.smear_description_pin_percent_min.Hide() 1723 self.smear_description_pin_percent_max.Hide() 1707 1724 self.smear_description_pin_percent.Hide() 1708 1725 self.smear_pinhole_percent.Hide()
Note: See TracChangeset
for help on using the changeset viewer.