You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
In the making science useful section of the README, the following code is used to override the
Scientist::Experiment#new
method: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 likecreate_this_experiment with: :name
?😬 I know this is a big ask, and I would be glad to help with developing a feature like this.
The text was updated successfully, but these errors were encountered: