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

Nest Ingredient Observers Inside Main Experiment Directory #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

decodyng
Copy link
Member

This PR:

  • Creates a "nest_ingredients" parameter on Experiment object
  • Passes the list of ingredients into the Run object created within experiment
  • For runs with a FileStorageObserver attached, and with the nest_ingredients flag set to true, iterate over ingredients and add to that ingredient a FileStorageObserver with a directory at /<ingredient_name> .

@decodyng decodyng changed the title Nest Ingredients Directory Nest Ingredient Observers Inside Main Experiment Directory Aug 26, 2019
@@ -334,8 +341,19 @@ def _emit_started(self):
)
if self._id is None:
self._id = _id
if (
observer.__class__.__name__ == "FileStorageObserver"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More Pythonic: isinstance(observer, FileStorageObserver). That will also match subclasses, which is probably desirable, but if not can do observer.__class__ ==FileStorageObserver.

Copy link
Member

@AdamGleave AdamGleave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment

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

Successfully merging this pull request may close these issues.

2 participants