Changeset 93c813f in sasview


Ignore:
Timestamp:
Sep 27, 2018 7:28:29 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
12acdcc
Parents:
bd39d6c
Message:

float→int cast must be made in GUI. SASVIEW-1137

Location:
src/sas
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Calculators/ResolutionCalculatorPanel.py

    r30e0be0 r93c813f  
    464464 
    465465            detector_size = self.txtDetectorSize.text() 
    466             detector_size = self._string2list(detector_size) 
     466            det_size = self._string2list(detector_size) 
     467            # detector sizes must be ints. recast. 
     468            detector_size = [int(i) for i in det_size] 
    467469            self.resolution.set_detector_size(detector_size) 
    468470 
  • src/sas/sascalc/calculator/resolution_calculator.py

    r30e0be0 r93c813f  
    10081008            detector_offset = self.sample2detector_distance[1] 
    10091009        except: 
    1010             logger.error(str(sys.exc_info()[1])) 
     1010            # valid path for GUI allowed values - just pass 
     1011            pass 
     1012            #logger.error(str(sys.exc_info()[1])) 
    10111013 
    10121014        # detector size in [no of pix_x,no of pix_y] 
     
    10951097            output.qy_data = qy_value 
    10961098        except: 
    1097             logger.error(sys.exc_value) 
     1099            logger.error(sys.exc_info()[1]) 
    10981100 
    10991101        return output 
Note: See TracChangeset for help on using the changeset viewer.