-
Notifications
You must be signed in to change notification settings - Fork 10
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
Implement xtype other than tth #120
Conversation
…for different xtypes
@yucongalicechen this still needs to be implemented in diffraction_objects. Please could you make an issue if it is not already there? d = 2*pi/Q. |
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.
this looks good. It may need a test for when an invalid input is provided for xtype. This can go in a separate test test_set_xtype_bad
@yucongalicechen this code is very high quality. Great job! you have learned well! |
assert actual_args.xtype == expected[0] | ||
|
||
|
||
def test_set_xtype_bad(): |
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.
Here's the test function for bad cases :)
@sbillinge |
yes, an issue for a user-supplied master-grid is already there i think. Yes, dump dumping d might be nice |
closes #45
I implemented functions to allow corrections on grid other than tth. The edits include:
Question: I didn't see functions that allow transfer between tth and d, so when xtype=d do we simply put xtype=tth?
@sbillinge ready for some feedback.