-
Notifications
You must be signed in to change notification settings - Fork 36
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
Improve job.data, project.data (H5Store) examples. #235
Conversation
@klywang any feedback on this PR? |
Codecov Report
@@ Coverage Diff @@
## master #235 +/- ##
=======================================
Coverage 65.38% 65.38%
=======================================
Files 42 42
Lines 5697 5697
=======================================
Hits 3725 3725
Misses 1972 1972
Continue to review full report at Codecov.
|
Why is this PR not assigned to anybody? |
This PR was in draft mode until recently. When moved out of draft mode, what is our policy for assigning a maintainer in charge? I'm guessing the bot didn't add any reviewers, so nobody assigned themself to the issue. |
I assigned myself to this PR and requested review from @klywang since she originally reported the documentation challenges. I marked it as "ready for review" (no longer draft mode) in hopes that it would get reviewed by someone, but I suppose the bot didn't assign reviewers. |
Is there a specific reason you one should use
|
@klywang The purpose of linking to |
Also might be worthwhile to try to make that relationship more explicit in the documentation to avoid confusion. |
@csadorf |
@klywang I see. So it's more about when to use |
(I would also include |
For For Topic Guides > Jobs > Job Data Store Writing data job.data['velocities'] = np.ones([10, 3, 2]) Data may also be written in subgroups: job.data['net_energy/frame_10'] = np.ones([10, 3]) Reading data with job.data:
velocities = job.data.velocities[:]
net_energy = job.data.net_energy.frame_10[:] To access data as a key: with job.data:
velocities = job.data['velocities'][:]
net_energy = job.data['net_energy/frame_10'][:] Other uses print(list(job.data.keys())
[Output]: ['velocities', 'net_energy']
print(list(job.data.net_energy.keys()))
[Output]: ['frame_10'] To iterate over keys in for frame_n in job.data.net_energy.keys():
with job.data:
frame_energy = job.data.net_energy[frame_n][:] Data written with For more information about supported data types and the file format, please see documentation for the Also, note for myself -- there is a typo in the |
As someone who has only just recently started using |
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.
@klywang We'll be making a release on Friday. If you have a chance to make the documentation changes by then (we also have a sprint on Thursday), that would be great! |
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!
It doesn't look like @klywang (or anyone) pushed any commits with the drafted text that is in her comment above. I'm confused about whether @b-butler and @atravitz meant to approve the file changes as they are currently (which is incomplete), or approve the concept of @klywang's changes. The changes @klywang suggested look great to me, but we need to ...actually implement them in the docs. 😕 I'll be making a release of signac tomorrow, could someone from (@glotzerlab/signac-committers, @klywang) take that on and copy-paste the snippets into the right places in the docs? If so, please reply on this PR. Otherwise I will try to apply the changes myself before making the release. It seems like we're generally in agreement over their intended content. |
I’ll take care of this before 11 am tomorrow (Friday).
…----------
On Thu, Dec 12, 2019 at 10:32 PM, Bradley Dice <[email protected]> wrote:
It doesn't look like @klywang <https://github.com/klywang> (or anyone)
pushed any commits with the drafted text that is in her comment above
<#235 (comment)>. I'm
confused about whether @b-butler <https://github.com/b-butler> and @atravitz
<https://github.com/atravitz> meant to approve the file changes *as they
are currently* (which is incomplete), or approve the *concept of @klywang
<https://github.com/klywang>'s changes*. The changes @klywang
<https://github.com/klywang> suggested look great to me, but we need to
...actually implement them in the docs. 😕
I'll be making a release of signac tomorrow, *could someone take that on
and copy-paste the snippets into the right places in the docs*? If so,
please reply on this PR. Otherwise I will try to apply the changes myself
before making the release. It seems like we're generally in agreement over
their intended content.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#235?email_source=notifications&email_token=AHT6IXZT7O3ZN7GMOF7PFMTQYL657A5CNFSM4JE5YSUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGYZJ6Y#issuecomment-565286139>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHT6IXZL2HKBWSSEISPBQMDQYL657ANCNFSM4JE5YSUA>
.
|
@bdice I meant to approve the suggestion. I should have been more clear about that. Otherwise, like you said the PR is incomplete. |
Update: @klywang is adding these in, then I'll review |
Thanks for the update @atravitz! |
In different repository?
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.
Just a few fixes to make it more consistent with the other doc strings
Topic guide updates are here |
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.
I think we can wrap this up now! Everything looks good.
Description
I created this PR to start addressing this issue: glotzerlab/signac-docs#50
@klywang Do you have specific suggestions on how to improve this? (I don't think I've "solved" the issue yet, since I haven't provided explicit examples for
job.data
as requested.) Feel free to edit this PR directly.Motivation and Context
glotzerlab/signac-docs#50
Types of Changes
1The change breaks (or has the potential to break) existing functionality.
Checklist:
If necessary: