Changeset 93c813f in sasview


Ignore:
Timestamp:
Sep 27, 2018 9:28:29 AM (3 months ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Invariant, ESS_GUI_batch_fitting, ESS_GUI_ordering
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.