general Package

general Module

mathematics Module

logger Module

pyNastran.general.logger.buildDummyLogger2(level='debug')[source]
class pyNastran.general.logger.debugLogger[source]

Bases: object

critical(msg)[source]
debug(msg)[source]
error(msg)[source]
fixMessage(msg, n=54)[source]
fname()[source]

Returns the current file in our program.

frame()[source]
funcName()[source]

Returns the current function name in our program.

info(msg)[source]
lineno()[source]

Returns the current line number in our program.

properties()[source]
warning(msg)[source]
class pyNastran.general.logger.dummyLogger[source]

Bases: object

startLog(level)[source]
pyNastran.general.logger.fileNamE()[source]
pyNastran.general.logger.fileNameLineNum(n=0)[source]
pyNastran.general.logger.frame(n)[source]
pyNastran.general.logger.getLogger(log=None, level='debug')[source]

This function is useful as it will instantiate a dummy logger object if log=None log may be a logger object or None pyFile is the python file that the code was called from (unused)

class pyNastran.general.logger.infoLogger[source]

Bases: pyNastran.general.logger.debugLogger

debug(msg)[source]
pyNastran.general.logger.lineNum()[source]

makeLog Module

pyNastran.general.makeLog.get_graphic_card_properties()[source]
pyNastran.general.makeLog.makeLog()[source]

utils Module

pyNastran.general.utils.__object_attr(obj, mode, attr_type)[source]
pyNastran.general.utils.object_attributes(obj, mode='public')[source]

List the names of attributes of a class as strings. Returns public methos as default.

Parameters:
  • obj – the object for checking
  • mode

    defines what kind of attributes will be listed

    • “public” - names that do not begin with underscore
    • “private” - names that begin with single underscore
    • “both” - private and public
    • “all” - all attributes that are defined for the object
Returns:

sorted list of the names of attributes of a given type or None if the mode is wrong

pyNastran.general.utils.object_methods(obj, mode='public')[source]

List the names of methods of a class as strings. Returns public methos as default.

Parameters:
  • obj – the object for checking
  • mode

    defines what kind of methods will be listed

    • “public” - names that do not begin with underscore
    • “private” - names that begin with single underscore
    • “both” - private and public
    • “all” - all methods that are defined for the object
Returns:

sorted list of the names of methods of a given type or None if the mode is wrong