Changeset d267aed in sasview
- Timestamp:
- Oct 4, 2010 10:41:45 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:
- 1e7de38
- Parents:
- afeb37a
- Location:
- calculator
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculator/slit_length_calculator.py
rafeb37a rd267aed 60 60 break 61 61 y_sum = y_sum + y[ind] 62 if y[ind] > y_max: y_max = y[ind] 62 if y[ind] > y_max: 63 y_max = y[ind] 63 64 ind += 1 64 65 … … 89 90 x_half = (x_half_d + x_half_u)/2.0 90 91 else: 91 x_half = (x_half_u * (y_half - y_half_d) + x_half_d*(y_half_u-y_half))\ 92 x_half = (x_half_u * (y_half - y_half_d) \ 93 + x_half_d*(y_half_u-y_half)) \ 92 94 /(y_half_u - y_half_d) 93 95
Note: See TracChangeset
for help on using the changeset viewer.