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

Displaying datetime objects #109

Open
mattdornfeld opened this issue Jan 1, 2019 · 1 comment
Open

Displaying datetime objects #109

mattdornfeld opened this issue Jan 1, 2019 · 1 comment

Comments

@mattdornfeld
Copy link

I have several Python datetime objects in my configs being sent to Sacred. In Sacredboard these are displayed as

start_dt | {...}
-- | --
__reduce__[{...}, [B+IMDgUILwnL0A==]]py/objectdatetime.datetime | __reduce__ | [{...}, [B+IMDgUILwnL0A==]] | py/object | datetime.datetime
__reduce__ | [{...}, [B+IMDgUILwnL0A==]]
py/object | datetime.datetime

Does anyone know if there's a way to get these displayed as strings?

@chovanecm
Copy link
Owner

This is odd. If you use MongoDB as a backend, the data adapter between Sacred and MongoDB should convert datetime to a MongoDB format, meaning there should be no "python datetime" object at all.
Can you use e.g. https://robomongo.org/ to locate the experiment in your database directly (bypassing Sacredboard) and check whether you notice anything suspicious?

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

No branches or pull requests

2 participants