Ignore:
Timestamp:
07/24/21 17:33:34 (4 years ago)
Author:
jdquinn
Message:

CHG: Completed MATLAB -> Python updates for SE; archive updates now that GMSH can be used on macOS and Linux; various minor bug fixes; formatting; cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/m/classes/verbose.py

    r24240 r26358  
    44
    55class verbose(object):
    6     """
    7     VERBOSE class definition
     6    """VERBOSE class definition
    87
    9        Available verbosity levels:
    10           mprocessor  : model processing
    11           module      : modules
    12           solution    : solution sequence
    13           solver      : solver info (extensive)
    14           convergence : convergence criteria
    15           control     : control method
    16           qmu         : sensitivity analysis
    17           autodiff    : AD analysis
    18           smb         : SMB analysis
     8    Available verbosity levels:
     9        mprocessor  : model processing
     10        module      : modules
     11        solution    : solution sequence
     12        solver      : solver info (extensive)
     13        convergence : convergence criteria
     14        control     : control method
     15        qmu         : sensitivity analysis
     16        autodiff    : AD analysis
     17        smb         : SMB analysis
    1918
    20        Usage:
    21           verbose = verbose()
    22           verbose = verbose(3)
    23           verbose = verbose('001100')
    24           verbose = verbose('module', True, 'solver', False)
     19    Usage:
     20        verbose = verbose()
     21        verbose = verbose(3)
     22        verbose = verbose('001100')
     23        verbose = verbose('module', True, 'solver', False)
    2524
    26     WARNING: some parts of this file are Synchronized with src/c/shared/Numerics/Verbosity.h
    27              Do not modify these sections. See src/c/shared/Numerics/README for more info
     25    NOTE:
     26    - Some parts of this file are Synchronized with
     27    src/c/shared/Numerics/Verbosity.h. Do not modify these sections. See
     28    src/c/shared/Numerics/README for more info.
    2829    """
    2930
     
    4243
    4344        if not len(args):
    44             #Don't do anything
     45            # Don't do anything
    4546            self.solution = True
    4647            self.qmu = True
     
    5253            if isinstance(binary, str):
    5354                if binary.lower() == 'all':
    54                     binary = 2**11 - 1  #all ones
     55                    binary = pow(2, 11) - 1  # all ones
    5556                    self.BinaryToVerbose(binary)
    56                     self.solver = False  #Do not use by default
     57                    self.solver = False  # Do not use by default
    5758                else:
    5859                    binary = int(binary, 2)
     
    6263
    6364        else:
    64             #Use options to initialize object
     65            # Use options to initialize object
    6566            self = pairoptions(*args).AssignObjectFields(self)
    6667
    67             #Cast to logicals
     68            # Cast to logicals
    6869            listproperties = vars(self)
    6970            for fieldname, fieldvalue in list(listproperties.items()):
Note: See TracChangeset for help on using the changeset viewer.