Changeset fbfc488 in sasview for src/sas/sascalc


Ignore:
Timestamp:
Nov 9, 2017 8:43:55 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
d6b8a1d
Parents:
7969b9c
git-author:
Piotr Rozyczko <rozyczko@…> (11/03/17 10:58:39)
git-committer:
Piotr Rozyczko <rozyczko@…> (11/09/17 08:43:55)
Message:

More Qt5 related fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/calculator/resolution_calculator.py

    r574adc7 rfbfc488  
    10071007        try: 
    10081008            detector_offset = self.sample2detector_distance[1] 
    1009         except: 
    1010             logger.error(sys.exc_value) 
     1009        except Exception as ex: 
     1010            logger.error(ex) 
    10111011 
    10121012        # detector size in [no of pix_x,no of pix_y] 
     
    10571057        # qx_value and qy_value values in array 
    10581058        qx_value = qx_value.repeat(detector_pix_nums_y) 
    1059         qx_value = qx_value.reshape(detector_pix_nums_x, detector_pix_nums_y) 
     1059        qx_value = qx_value.reshape(int(detector_pix_nums_x), int(detector_pix_nums_y)) 
    10601060        qy_value = qy_value.repeat(detector_pix_nums_x) 
    1061         qy_value = qy_value.reshape(detector_pix_nums_y, detector_pix_nums_x) 
     1061        qy_value = qy_value.reshape(int(detector_pix_nums_y), int(detector_pix_nums_x)) 
    10621062        qy_value = qy_value.transpose() 
    10631063 
Note: See TracChangeset for help on using the changeset viewer.