Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an alternate interface for publishing results #64

Closed
johana-star opened this issue Jan 10, 2017 · 1 comment
Closed

Create an alternate interface for publishing results #64

johana-star opened this issue Jan 10, 2017 · 1 comment

Comments

@johana-star
Copy link

In the making science useful section of the README, the following code is used to override the Scientist::Experiment#new method:

# replace `Scientist::Default` as the default implementation
module Scientist::Experiment
  def self.new(name)
    MyExperiment.new(name: name)
  end
end

This makes it possible for the experimenter to publish results, and without this change scientist isn't as useful.

I don't understand the inner workings of this gem, but it would be fantastic to have the ability to customize my experiment without having to override the class. Is it possible to create a class level method in Scientist::Experiment which turns on the experiment? something like create_this_experiment with: :name?

😬 I know this is a big ask, and I would be glad to help with developing a feature like this.

@johana-star
Copy link
Author

Worked with another dev at my company and found a reasonable approach for our use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant