Assuming I have a class that implements several methods. We want the user to choose which methods to run among existing methods, or he can decide to add any on_the_fly method.
from an example
class RemoveNoise(): pass
then methods are added as desired
RemoveNoise.raw = Raw() RemoveNoise.bais = Bias() etc
he can even write a new one
def new(): pass
and also add the new() method
RemoveNoise.new=new run(RemoveNoise)
run() is a function that evaluates such a class.
I want to save the_with_the_methods_used class and associate this class with the created object.
Any tips on how to solve this in python?
source share