Package: python-pbcore / 2.1.2+dfsg-13
Metadata
| Package | Version | Patches format |
|---|---|---|
| python-pbcore | 2.1.2+dfsg-13 | 3.0 (quilt) |
Patch series
view the series file| Patch | File delta | Description |
|---|---|---|
| doc theme.patch | (download) |
doc/conf.py |
3 1 + 2 - 0 ! |
use default sphinx theme for documentation The upstream's original theme includes their corporate logo. To be safe, this patch ignores it and configures the documentation builder to use the default theme. |
| exclude_test_missing_data.patch | (download) |
pytest.ini |
1 0 + 1 - 0 ! |
missing data for this test |
| b24746790c7105212e45dc2f40115d231bd8baae.patch | (download) |
Makefile |
6 1 + 5 - 0 ! |
[patch] [sl-5880] abandon pyxb, use xmlschema for validation if installed (and xsd is defined) Fixes #122 |
| seek curdir for xml.patch | (download) |
pbcore/chemistry/chemistry.py |
6 5 + 1 - 0 ! |
try looking for mapping.xml in the current directory helps when package is not installed for generating docs etc |
| numpy_1.24.patch | (download) |
pbcore/io/dataset/DataSetMembers.py |
6 3 + 3 - 0 ! |
fix attributeerror: module 'numpy' has no attribute 'float'. with numpy/1.24.1 |
| no intersphinx.patch | (download) |
doc/conf.py |
3 0 + 3 - 0 ! |
remove intersphinx |
| remove pkg resources.patch | (download) |
doc/conf.py |
7 4 + 3 - 0 ! |
remove usages of pkg_resources pkg_resources are no longer available in Python 3.12 due to setuptools removal from the default installation. This patch replaces the usages of pkg_resources with importlib.resources. |
| numpy2.patch | (download) |
pbcore/io/align/BamAlignment.py |
6 5 + 1 - 0 ! |
workaround overflow errors with numpy 2.
These changes fix various overflow errors caught since numpy 2 by
restoring the former behavior by emulating the situation when overflows
weren't trapped. The -1 error code in unsigned types is handled by
setting the value to the maximum unsigned integer instead, and large
index values not fitting in 32-bit are guarded with modulo operation.
.
The change also includes a slight modification to account for weirder
base 16 numbers caught by end user upstream, resolving the following
error:
.
File "/home/shuaiw/miniconda3/envs/methy2/lib/python3.11/site-packages/pbcore/io/align/BamIO.py", line 218, in __init__
self._loadReadGroupInfo()
File "/home/shuaiw/miniconda3/envs/methy2/lib/python3.11/site-packages/pbcore/io/align/BamIO.py", line 89, in _loadReadGroupInfo
rgID = rgAsInt(rg["ID"])
^^^^^^^^^^^^^^^^^
File "/home/shuaiw/miniconda3/envs/methy2/lib/python3.11/site-packages/pbcore/io/align/_BamSupport.py", line 70, in rgAsInt
return np.int32(int(rgIdString.split("/")[0], 16))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 16: 'cb4d472d-100C60F6'
.
I'm reluctant to formally send that patch upstream, as it feels like a
workaround where the right answer would probably be to bump the type
sizes to 64-bit. However, I do not know what is the actually correct
approach.
|
