-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add crystfel streams to rs/io
module
#50
Conversation
Overall, this looks mostly good to me. I'm gonna review and request a few minor revisions. High-level questions:
|
I just noticed the test data is 98MB -- it looks like it's a raw text with many "crystal" entries, that I'm assuming belong to a serial experiment. We try to keep this test data fairly minimal to what's needed to assess the core functionality. Do you mind reducing the data by only including something like 2 crystals? Whatever seems like a reasonable minimum number to test the parser. |
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.
Thanks for the PR! On the whole it all looks great. All my comments were very minor. The only main things in my mind to change are:
- Let's reduce the test file size
- I think it would make sense to set the
spacegroup
,cell
, andmerged
attributes, if at all possible
I'm happy to make most of the above minor revisions that I commented on, but let me know how you want to handle the above two things
Hi @JBGreisman , thanks for your detailed reply. I resolved most of your comments, here is the detailed reply:
Only unmerged, right. The flag is now set.
During
Sure, I added parsing of cell parameters from the header and added respective test for equality (
I choose 3 -- like odd numbers. My only with was for the stream to have crystals with both positive and negative |
Codecov Report
@@ Coverage Diff @@
## master #50 +/- ##
==========================================
- Coverage 99.17% 98.77% -0.41%
==========================================
Files 34 35 +1
Lines 1340 1470 +130
==========================================
+ Hits 1329 1452 +123
- Misses 11 18 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
good catch with the |
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.
Looks good to me. I'll merge this in shortly.
Thanks @marinegor! |
This PR adds:
CrystFEL's
stream files intoDataSet
format without any metadataewald_offset
,s1{x,y,z}
upon reading