Commit 51482db
Investigate CI failure in pyopenms-docs PR (OpenMS#489)
* Fix RST indentation bug in interactive_plots.rst for PR OpenMS#480
The CI failure in PR OpenMS#480 was caused by broken indentation in
interactive_plots.rst. The hd.dynspread(...) block was at column 0
instead of being indented with 4 spaces, placing it outside the
RST code-block directive.
When notebooks are generated from this RST file, the unindented code
becomes markdown text instead of Python code, causing notebook
execution to fail.
This commit applies the PR OpenMS#480 changes (PeptideIdentificationList,
get2DPeakDataLong 5th arg, refactored opts) with correct indentation.
* Remove broken setIntensityRange call in interactive_plots.rst
The DRange1 API changed in pyopenms 3.5.0 and no longer accepts
DPosition1 objects in its constructor. The setIntensityRange call
was causing a runtime error:
Exception: can not handle type of (DPosition1, DPosition1)
Since intensity range filtering is optional for this visualization,
the simplest fix is to remove the call entirely. This also removes
the now-unused 'import sys' statement.
* Use ThresholdMower for intensity filtering in interactive_plots.rst
The DRange1(DPosition1, DPosition1) constructor is broken in pyopenms
3.5.0, causing setIntensityRange to fail with:
Exception: can not handle type of (DPosition1, DPosition1)
This is a workaround that uses ThresholdMower to filter peaks with
intensity < 5000 after loading, achieving the same effect as the
original setIntensityRange call.
---------
Co-authored-by: Claude <[email protected]>1 parent d01034d commit 51482db
1 file changed
+15
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
33 | 31 | | |
34 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
38 | | - | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 84 | | |
87 | 85 | | |
88 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
0 commit comments