module documentation

versatile shortcuts for quick typing in an (i)python shell,

or even using from cma.s import * in interactive sessions.

Provides various aliases from within the cma package, to be reached like cma.s....

Do not use this module for stable code developments!

This is not actively maintained.

Class CMAES Undocumented
Function clean Deprecated, renamed to ddir
Function ddir return "public" elements of a list or dict or of object.__dict__.
Function figshow pyplot.show to make a plotted figure show up
Function _cdict return public attributes of obj as a dict.
def clean(*args, **kwargs):

Deprecated, renamed to ddir

def ddir(obj, exclude='_'):

return "public" elements of a list or dict or of object.__dict__.

Ignore entries starting with exclude. Return a 'list` when obj is a list or a dict, return a dict otherwise. This is versatile and could change in future.

Typical usage: clean(dir()) or clean(obj) or clean(dir(), '__').

def figshow():

pyplot.show to make a plotted figure show up

def _cdict(obj, exclude='_'):

return public attributes of obj as a dict.

Pass '__' as second argument to see "private" attributes.