-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[cirqflow] Convenience method for loading results #4720
Conversation
Add cg.ExecutableGroupResultFilesystemRecord.from_json(run_id)
@tanujkhattar do you have any comments on this before I flesh it out. Fixes #4732 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Will approve once this ready for review.
fn = f'{base_data_dir}/{run_id}/ExecutableGroupResultFilesystemRecord.json.gz' | ||
egr_record = cirq.read_json_gzip(fn) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I didn't realize we were also storing ExecutableGroupResultFilesystemRecord
and therefore we can fetch the runtime_configuration_path
, shared_runtime_info_path
etc. by directly reading this json instead of hardcoding any paths here.
Add cg.ExecutableGroupResultFilesystemRecord.from_json(run_id)
Add cg.ExecutableGroupResultFilesystemRecord.from_json(run_id)
Add cg.ExecutableGroupResultFilesystemRecord.from_json(run_id)