general Package¶
general Module¶
mathematics Module¶
logger Module¶
-
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)
makeLog Module¶
utils Module¶
-
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