Packages

A software package for easier sharing, maintaining, and running scientific experiments.

Current section

Files

Jump to
experiment_runner lib experiment_runner.ex
Raw

lib/experiment_runner.ex

defmodule ExperimentRunner do
@moduledoc """
Documentation for `ExperimentRunner`.
"""
@doc """
Main entrypoint for processing the experiment.
Returns `:ok`.
## Examples
iex> ExperimentRunner.start_experiment
:ok
"""
def start_experiment(yaml_file) do
IO.puts("#{IO.ANSI.blue()}Reading experiment configuration.")
content = ReadConfig.read_yaml(yaml_file)
IO.puts("#{IO.ANSI.blue()}Done.")
IO.puts("#{IO.ANSI.blue()}Preprocessing experiment file.")
ReadConfig.preprocess_yaml(elem(content, 1))
IO.puts("#{IO.ANSI.blue()}Done.")
end
end