Scientist v0.2.0 Scientist.Default

The default Scientist experiment.

This experiment module will be used when an experiment is created without a callback module specified. It has trivial implementations of the required callbacks for Scientist.Experiment.

This experiment is always enabled and its results are never published.

Summary

Functions

Returns the default context for an experiment

Returns the default name for an experiment

Callback implementation for Scientist.Experiment.enabled?/0

Creates a new experiment

Callback implementation for Scientist.Experiment.publish/1

Called when an experiment run raises an error during an operation

Called when an experiment run throws an error during an operation

Functions

default_context()

Returns the default context for an experiment.

Any additional context passed to new/2 will be merged with the default context.

default_name()

Returns the default name for an experiment.

enabled?()

Callback implementation for Scientist.Experiment.enabled?/0.

new(name \\ default_name, opts \\ [])

Creates a new experiment.

publish()

Callback implementation for Scientist.Experiment.publish/1.

raised(experiment, operation, except)

Called when an experiment run raises an error during an operation.

thrown(experiment, operation, except)

Called when an experiment run throws an error during an operation.