-
Notifications
You must be signed in to change notification settings - Fork 38
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
log
: optimize dumping to files
#238
Comments
We could take #338 one step further and remove implicit API would look a little polluted but I think it is still not too bad:
I also think it makes it kind of easier to document/explain the API as now Considering callbacks as the main entry point would make the change more like an internal detail |
How about Dumping on the |
I don't see this actually causing problems now, so not sure it's worth trying to address if it's about optimization, but if it cleans up the API, I'm open to it. @daavoo Your idea would mean either As an alternative, the idea of #145 is still not really implemented IMO. I expected it to look like:
That workflow would have the tradeoff that the last step might not get logged to the tsv file. In either case, if we have a context manager and recommend that in 1.0, it can solve these tradeoffs if additional methods are called on exit. |
for me it's about (in order):
|
Discussed with @daavoo and decided that:
|
Seems odd to do this. If there are multiple things to log per iteration, you dump multiple times?
next_step()
log(..., write_summary=False)
next_step()
internally uselog("step", ..., write_summary=True)
I don't quite follow the wording in #145 but from what I can tell it seems identical to this issue (#232) so shouldn't have been closed?
Originally posted by @casperdcl in #232 (comment)
The text was updated successfully, but these errors were encountered: