bmmltools.utils.basic.get_parameters

bmmltools.utils.basic.get_parameters(cls, method='__init__')

Given a class, get the input parameters of a method with its current value.

P.A.: The convention “method inputs names equal the class attributes names” for all the input variables is assumed.

Parameters:
  • cls – (object) Python class to analyze.

  • method – (str) optional, name of the method to analyze.

Returns:

(dict) dictionary have the variables names as keys and the variables values as values.