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
I think recursively tracking the imported source files is a general way to organize my experiments. But now I have to manually add the utils.py by ex.add_source_file("utils.py"), which is not quite convenient.
The text was updated successfully, but these errors were encountered:
Jarvis73
changed the title
Recurrsively track the imported source files
Feature Request: Recurrsively track the imported source files
Mar 20, 2021
I agree this would be a good feature. I'm not that familiar with dependency gathering, but I think that it shouldn't be too complicated.
In general, I would recommend putting all your sources in a git repository. Then, sacred can track the state of that git repository. But even then, it could be that you import another custom package in your code that depends on other things that are currently not tracked.
Let's add this feature as an option for dependency gathering!
@Qwlouse
Thank you for your reply. I tested the sys mode, and it did solve my question.
@thequilo
By the way, I think maybe the sys mode is more natural to be the default option than imported. Because only if all the "recursively imported source files" are reserved, one can reproduce the experiments.
I have three source files:
# Some util functions
When I run the
main.py
, the output isBut the
utils.py
is not included.I think recursively tracking the imported source files is a general way to organize my experiments. But now I have to manually add the
utils.py
byex.add_source_file("utils.py")
, which is not quite convenient.The text was updated successfully, but these errors were encountered: