| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -180,7 +180,7 @@ For example, attempting to add a diffraction object and a string will raise an e | |
|
|
||
| .. code-block:: python | ||
|
|
||
| tth_ninety_index = diff_object1.get_array_index(90, xtype="tth") | ||
| tth_ninety_index = diff_object1.get_array_index(xvalue=90, xtype="tth") | ||
| intensity_at_ninety = diff_object1.on_tth()[1][tth_ninety_index] | ||
|
|
||
| If you do not specify an ``xtype``, it will default to the ``xtype`` used when creating the ``DiffractionObject``. | ||
| Expand All | @@ -190,8 +190,8 @@ you can find its closest index for ``q=0.25`` by typing either of the following: | |
| .. code-block:: python | ||
|
|
||
| print(do._input_xtype) # remind ourselves which array was input. prints "q" in this case. | ||
| index = do.get_array_index(0.25) # no xtype passed, defaults to do._input_xtype, or in this example, q | ||
| index = do.get_array_index(0.25, xtype="q") # explicitly choose an xtype to specify a value | ||
| index = do.get_array_index(xvalue=0.25) # no xtype passed, defaults to do._input_xtype, or in this example, q | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Qualitysame here.
Sorry, something went wrong.
All reactions
|
||
| index = do.get_array_index(xvalue=0.25, xtype="q") # explicitly choose an xtype to specify a value | ||
|
|
||
| 5. The ``dump`` function saves the diffraction data and relevant information to an xy format file with headers | ||
| (widely used chi format used, for example, by Fit2D and diffpy. These files can be read by ``LoadData()`` | ||
| Expand Down | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| **Added:** | ||
|
|
||
| * No news added: Fix some examples in the documentation. | ||
|
|
||
| **Changed:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Deprecated:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Removed:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Fixed:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Security:** | ||
|
|
||
| * <news item> |
| Back | FazBrowse Home | New Git URL |
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.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThis will have to be fixed later when we finalize the signature. Let's just remember to do it....
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.