| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
… the documentation
Codecov ReportAll modified and coverable lines are covered by tests ✅ Additional details and impacted files @@ Coverage Diff @@
## main #354 +/- ##
========================================
Coverage ? 100.00%
========================================
Files ? 9
Lines ? 516
Branches ? 0
========================================
Hits ? 516
Misses ? 0
Partials ? 0
|
Sorry, something went wrong.
|
@sbillinge, it's ready for review. |
Sorry, something went wrong.
There was a problem hiding this comment.
let's start by writing tests for get_array_index
Sorry, something went wrong.
|
@sbillinge , this PR only fixes the documentation. I will handle the get_array_index source code in a separate PR. |
Sorry, something went wrong.
There was a problem hiding this comment.
I will merge, but let's not forget to double check the docs for get_array_index
Sorry, something went wrong.
| .. 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") |
There was a problem hiding this comment.
This will have to be fixed later when we finalize the signature. Let's just remember to do it....
Sorry, something went wrong.
| 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 |
There was a problem hiding this comment.
same here.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What problem does this PR address
Fix the examples as mentioned in #352
Fix the documentation examples.
What should reviewer(s) do
Please check the modified documentation.
example for DiffractionObject.get_array_index

Duplicate code block is removed

Markup is now rendered correctly
