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

Fix issues with FileStorageExperiment not closing open files #125

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

Conversation

rajatvd
Copy link

@rajatvd rajatvd commented Nov 11, 2024

No description provided.

@JarnoRFB
Copy link
Owner

@rajatvd thanks for your contribution! Can you elaborate on why info.json might not be present?

@rajatvd
Copy link
Author

rajatvd commented Nov 11, 2024

By default if we use just a FileStorageObserver, the info.json file is not created.

For example, test.py :

from sacred import Experiment
from sacred.observers import FileStorageObserver

ex = Experiment()
ex.observers.append(FileStorageObserver.create("my_runs"))


@ex.automain
def my_main(_run):
    print("Hello world!")
    _run.log_scalar("foo", 42)

Running
python test.py

leads to directory structure that looks like

- my_runs
  - 1
     - config.json
     - cout.txt
     - metrics.json
     - run.json

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