Changeset d470dc7 in sasview


Ignore:
Timestamp:
Sep 15, 2016 8:33:57 AM (5 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:
69d8aac
Parents:
dbce805
git-author:
Andrew Jackson <andrew.jackson@…> (08/31/16 11:07:47)
git-committer:
Piotr Rozyczko <rozyczko@…> (09/15/16 08:33:57)
Message:

Fixing issue with dmax in P(r). Now logs value error rather than crashing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/pr/invertor.py

    rb699768 rd470dc7  
    154154            return self.set_err(value2) 
    155155        elif name == 'd_max': 
     156            if value <= 0.0: 
     157                msg = "Invertor: d_max must be greater than zero." 
     158                msg += "Correct that entry before proceeding" 
     159                raise ValueError, msg 
    156160            return self.set_dmax(value) 
    157161        elif name == 'q_min': 
Note: See TracChangeset for help on using the changeset viewer.