Changeset 19637b1 in sasview for calculator
- Timestamp:
- Jan 20, 2011 9:34:56 AM (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:
- 943cacb
- Parents:
- c91c29e
- Location:
- calculator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
calculator/instrument.py
r3be3a80 r19637b1 305 305 try: 306 306 val = float(value) 307 if val > 0:307 if val >= 0: 308 308 val = True 309 309 else: … … 311 311 except: 312 312 val = False 313 if not val:314 raise ValueError, "Got improper value..."313 #if not val: 314 # raise ValueError, "Got improper value..." -
calculator/resolution_calculator.py
r3be3a80 r19637b1 387 387 if switch.lower() == 'off': 388 388 return 0 389 if self.mass == 0.0: 390 return 0 389 391 # check the singular point 390 392 if d_distance == 0 or comp == 'x': … … 851 853 :return delta y: the beam center drop in cm 852 854 """ 855 # Check if mass == 0 (X-ray). 856 if self.mass == 0: 857 return 0 853 858 # Covert unit from A to cm 854 859 unit_cm = 1e-08
Note: See TracChangeset
for help on using the changeset viewer.