libgunshotmatch 0.11.1__tar.gz → 0.11.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of libgunshotmatch might be problematic. Click here for more details.

Files changed (22) hide show
  1. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/PKG-INFO +2 -2
  2. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/README.rst +1 -1
  3. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/__init__.py +1 -1
  4. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/comparison/projects.py +6 -3
  5. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/pyproject.toml +1 -1
  6. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/LICENSE +0 -0
  7. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/comparison/__init__.py +0 -0
  8. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/comparison/_utils.py +0 -0
  9. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/comparison/unknowns.py +0 -0
  10. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/consolidate/__init__.py +0 -0
  11. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/consolidate/_fields.py +0 -0
  12. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/consolidate/_spectra.py +0 -0
  13. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/datafile.py +0 -0
  14. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/gzip_util.py +0 -0
  15. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/method/__init__.py +0 -0
  16. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/method/_fields.py +0 -0
  17. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/peak.py +0 -0
  18. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/project.py +0 -0
  19. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/py.typed +0 -0
  20. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/search.py +0 -0
  21. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/libgunshotmatch/utils.py +0 -0
  22. {libgunshotmatch-0.11.1 → libgunshotmatch-0.11.2}/requirements.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: libgunshotmatch
3
- Version: 0.11.1
3
+ Version: 0.11.2
4
4
  Summary: Base library for GunShotMatch.
5
5
  Author-email: Dominic Davis-Foster <dominic@davis-foster.co.uk>
6
6
  License: MIT
@@ -135,7 +135,7 @@ libgunshotmatch
135
135
  .. |language| image:: https://img.shields.io/github/languages/top/GunShotMatch/libgunshotmatch
136
136
  :alt: GitHub top language
137
137
 
138
- .. |commits-since| image:: https://img.shields.io/github/commits-since/GunShotMatch/libgunshotmatch/v0.11.1
138
+ .. |commits-since| image:: https://img.shields.io/github/commits-since/GunShotMatch/libgunshotmatch/v0.11.2
139
139
  :target: https://github.com/GunShotMatch/libgunshotmatch/pulse
140
140
  :alt: GitHub commits since tagged version
141
141
 
@@ -91,7 +91,7 @@ libgunshotmatch
91
91
  .. |language| image:: https://img.shields.io/github/languages/top/GunShotMatch/libgunshotmatch
92
92
  :alt: GitHub top language
93
93
 
94
- .. |commits-since| image:: https://img.shields.io/github/commits-since/GunShotMatch/libgunshotmatch/v0.11.1
94
+ .. |commits-since| image:: https://img.shields.io/github/commits-since/GunShotMatch/libgunshotmatch/v0.11.2
95
95
  :target: https://github.com/GunShotMatch/libgunshotmatch/pulse
96
96
  :alt: GitHub commits since tagged version
97
97
 
@@ -29,5 +29,5 @@ Base library for GunShotMatch.
29
29
  __author__: str = "Dominic Davis-Foster"
30
30
  __copyright__: str = "2020-2023 Dominic Davis-Foster"
31
31
  __license__: str = "MIT License"
32
- __version__: str = "0.11.1"
32
+ __version__: str = "0.11.2"
33
33
  __email__: str = "dominic@davis-foster.co.uk"
@@ -52,15 +52,18 @@ def filter_alignment_to_consolidate(project: Project) -> Alignment:
52
52
 
53
53
  # Sort expr_code and peakpos into order from datafile_data
54
54
  desired_order = list(project.datafile_data)[::-1]
55
- sort_map = [desired_order.index(code) for code in project.alignment.expr_code]
55
+ sort_map = [project.alignment.expr_code.index(code) for code in desired_order]
56
56
  expr_code = [project.alignment.expr_code[idx] for idx in sort_map]
57
57
  peakpos = [project.alignment.peakpos[idx] for idx in sort_map]
58
+ assert desired_order == expr_code
58
59
 
59
- consolidated_peak_retention_times = [cp.rt_list for cp in project.consolidated_peaks]
60
+ consolidated_peak_retention_times = []
61
+ for cp in project.consolidated_peaks:
62
+ consolidated_peak_retention_times.append([None if numpy.isnan(rt) else rt for rt in cp.rt_list])
60
63
 
61
64
  aligned_peaks_surviving_consolidate = []
62
65
  for aligned_peaks in zip(*peakpos):
63
- aprt = [p.rt for p in reversed(aligned_peaks)]
66
+ aprt = [None if p is None else p.rt for p in reversed(aligned_peaks)]
64
67
  if aprt in consolidated_peak_retention_times:
65
68
  aligned_peaks_surviving_consolidate.append(aligned_peaks)
66
69
 
@@ -4,7 +4,7 @@ build-backend = "whey"
4
4
 
5
5
  [project]
6
6
  name = "libgunshotmatch"
7
- version = "0.11.1"
7
+ version = "0.11.2"
8
8
  description = "Base library for GunShotMatch."
9
9
  readme = "README.rst"
10
10
  keywords = []