Changeset 0efca36 in sasview


Ignore:
Timestamp:
Jan 11, 2012 1:39:42 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

cleaned up some stuffs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/density_panel.py

    r992b594 r0efca36  
    11""" 
    2 This module provide GUI for the neutron scattering length density calculator 
     2This module provide GUI for the mass density calculator 
    33 
    44""" 
    5  
    65import wx 
    7 import math 
    86import sys 
    9  
    107from sans.guiframe.panel_base import PanelBase 
    118from wx.lib.scrolledpanel import ScrolledPanel 
    12 from sans.guiframe.utils import format_number 
    139from sans.guiframe.utils import check_float 
    1410from sans.guiframe.events import StatusEvent   
    15  
    16 # the calculator default value for wavelength is 6 
    17 #import periodictable 
    1811from periodictable import formula as Formula 
    19 from periodictable.xsf import xray_energy 
    20 from periodictable.xsf import xray_sld_from_atoms 
    21 from periodictable.nsf import neutron_scattering 
    2212        
    2313AVOGADRO =  6.02214129e23 
    24  
    25 _SCALE = 1e-6 
    2614_INPUTS = ['Mass Density', 'Molar Volume'] 
    2715_UNITS = ['g/cm^(3)     ', 'cm^(3)/mol '] 
    28 #SLD panel size  
     16#Density panel size  
    2917if sys.platform.count("win32") > 0: 
    3018    _STATICBOX_WIDTH = 410 
Note: See TracChangeset for help on using the changeset viewer.