Skip to content

Commit

Permalink
Add meta-params population from Experiment class (#37, #51)
Browse files Browse the repository at this point in the history
  • Loading branch information
a5kin committed May 2, 2019
1 parent 3830f48 commit 6f3f2ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xentica/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@ def __init__(self, experiment_class):
if (not callable(attr) and not attr_name.startswith("__")):
if attr_name == 'seed':
continue
if hasattr(self.meta, attr_name):
setattr(self.meta, attr_name, attr)
continue
setattr(self, attr_name, attr)
# default simulation values
self.speed = 1
Expand Down

0 comments on commit 6f3f2ca

Please sign in to comment.