Changeset 4021 for trunk/GSASIImpsubs.py


Ignore:
Timestamp:
Jun 11, 2019 10:05:07 PM (2 years ago)
Author:
toby
Message:

implement filter for screen messages; start to replace print() with G2Print(); scripting changes for PDF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImpsubs.py

    r3866 r4021  
    3232GSASIIpath.SetVersionNumber("$Revision$")
    3333import GSASIIpwd as G2pwd
     34import GSASIIfiles as G2fil
    3435
    3536sind = lambda x: np.sin(x*np.pi/180.)
     
    5657    useMP = False
    5758    if not allowMP:
    58         print('Multiprocessing disabled')
     59        G2fil.G2Print('Multiprocessing disabled')
    5960        ncores = 0
    6061        return useMP,ncores
     
    6465        useMP = True
    6566    if useMP:
    66         print('Multiprocessing with {} cores enabled'.format(ncores))
     67        G2fil.G2Print('Multiprocessing with {} cores enabled'.format(ncores))
    6768    return useMP,ncores
    6869
Note: See TracChangeset for help on using the changeset viewer.