Changeset 2c60f304 in sasview for src/sas


Ignore:
Timestamp:
Aug 31, 2016 11:07:47 AM (8 years ago)
Author:
ajj
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
4036cb0
Parents:
86eb046
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 r2c60f304  
    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.