Changeset d6e5b31 in sasview for src/sas


Ignore:
Timestamp:
Oct 3, 2017 4:34:39 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:
d5c5d3d, 13cd397, 28cda69
Parents:
4f790d2
Message:

Distance objects for resolution should really contain two parameters

File:
1 edited

Legend:

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

    r01cda57 rd6e5b31  
    816816        if len(distance) < 1 or len(distance) > 2: 
    817817            raise RuntimeError, "The length of the size must be one or two." 
     818        if len(distance) == 1: 
     819            distance.append(0) 
    818820        self.sample.set_distance(distance) 
    819821 
     
    826828        if len(distance) < 1 or len(distance) > 2: 
    827829            raise RuntimeError, "The length of the size must be one or two." 
     830        if len(distance) == 1: 
     831            distance.append(0) 
    828832        self.detector.set_distance(distance) 
    829833 
Note: See TracChangeset for help on using the changeset viewer.