Changeset b58265c3 in sasview for src/sas


Ignore:
Timestamp:
Sep 26, 2017 3:16:21 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
1efbc190
Parents:
36ca21e
Message:

use logger rather than print for error notifications

File:
1 edited

Legend:

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

    r1d014cb rb58265c3  
    561561                            vol_pix = np.append(vol_pix, vol) 
    562562                        except Exception: 
    563                             print("Error: set the sld of %s to zero"% atom_name) 
     563                            logger.error("Error: set the sld of %s to zero"% atom_name) 
    564564                            sld_n = np.append(sld_n, 0.0) 
    565565                        sld_mx = np.append(sld_mx, 0) 
Note: See TracChangeset for help on using the changeset viewer.