def instance_for_arguments(self, arguments):
        """
        Parameters
        ----------
        arguments: {Prior: float}
            A dictionary of arguments

        Returns
        -------
        model_instances: [object]
            A list of instances constructed from the list of prior models.
        """
        result = ModelInstance()
        for key, value in self.__dict__.items():
            if isinstance(value, AbstractPriorModel):
                value = value.instance_for_arguments(arguments)
            setattr(result, key, value)
        return result
def instance_for_arguments ( self , arguments ) : result = ModelInstance ( ) for key , value in self . __dict__ . items ( ) : if isinstance ( value , AbstractPriorModel ) : value = value . instance_for_arguments ( arguments ) setattr ( result , key , value ) return result
Parameters
        ----------
        arguments: {Prior: float}
            A dictionary of arguments

        Returns
        -------
        model_instances: [object]
            A list of instances constructed from the list of prior models.