context_modifier

class nrv.optim.optim_utils.context_modifier(extracel_context=True, intracel_context=False, rec_context=False)[source]

Instantiate a context modifier: Callable object which modify a static context, regarding a vector of tunning parameters, to generate a new local context

Notes

context_modifier is an abstract class used to inherit new context modifier.

Parameters:
  • extracel_context (bool) – specifies whether to load extracel_context with the static context

  • intracel_context (bool) – specifies whether to load intracel_context with the static context

  • rec_context (bool) – specifies whether to load rec_context with the static context

Methods

context_modifier.__init__([...])

Init method for NRV_class

context_modifier.get_parameters()

Generic method returning all the atributes of an NRV_class instance

context_modifier.load(data[, blacklist])

Generic loading method for NRV_class instance

context_modifier.save([save, fname, blacklist])

Generic saving method for NRV_class instance.

context_modifier.set_parameters(**kawrgs)

Generic method to set any attribute of NRV_class instance