Changeset b6627d9 in sasview for src/sas/calculator/slit_length_calculator.py
- Timestamp:
- Mar 4, 2015 11:02:23 AM (10 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:
- 7cd87c2
- Parents:
- 5a7d933
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/calculator/slit_length_calculator.py
r6bd3a8d1 rb6627d9 57 57 58 58 # sum 10 or more y values until getting max_y, 59 while (True):59 while True: 60 60 if ind >= 10 and y_max == max_y: 61 61 break … … 72 72 ind = 0.0 73 73 # find indices where it crosses y = y_half. 74 while (True):74 while True: 75 75 # no need to check when ind == 0 76 76 ind += 1
Note: See TracChangeset
for help on using the changeset viewer.