Changeset 0efca36 in sasview
- Timestamp:
- Jan 11, 2012 1:39:42 PM (13 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:
- 2c068c7
- Parents:
- 992b594
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/density_panel.py
r992b594 r0efca36 1 1 """ 2 This module provide GUI for the neutron scattering lengthdensity calculator2 This module provide GUI for the mass density calculator 3 3 4 4 """ 5 6 5 import wx 7 import math8 6 import sys 9 10 7 from sans.guiframe.panel_base import PanelBase 11 8 from wx.lib.scrolledpanel import ScrolledPanel 12 from sans.guiframe.utils import format_number13 9 from sans.guiframe.utils import check_float 14 10 from sans.guiframe.events import StatusEvent 15 16 # the calculator default value for wavelength is 617 #import periodictable18 11 from periodictable import formula as Formula 19 from periodictable.xsf import xray_energy20 from periodictable.xsf import xray_sld_from_atoms21 from periodictable.nsf import neutron_scattering22 12 23 13 AVOGADRO = 6.02214129e23 24 25 _SCALE = 1e-626 14 _INPUTS = ['Mass Density', 'Molar Volume'] 27 15 _UNITS = ['g/cm^(3) ', 'cm^(3)/mol '] 28 # SLDpanel size16 #Density panel size 29 17 if sys.platform.count("win32") > 0: 30 18 _STATICBOX_WIDTH = 410
Note: See TracChangeset
for help on using the changeset viewer.