pytsf 1.0.0__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.
- pytsf-1.0.0/.gitignore +153 -0
- pytsf-1.0.0/LICENSE +71 -0
- pytsf-1.0.0/PKG-INFO +503 -0
- pytsf-1.0.0/PROVENANCE.md +39 -0
- pytsf-1.0.0/README.md +485 -0
- pytsf-1.0.0/Using-the-dylib-onmac.md +416 -0
- pytsf-1.0.0/capi/Makefile +254 -0
- pytsf-1.0.0/capi/smoke_test.c +110 -0
- pytsf-1.0.0/capi/tsf_compat.c +679 -0
- pytsf-1.0.0/capi/tsf_compat.h +107 -0
- pytsf-1.0.0/capi/validate_capi.py +250 -0
- pytsf-1.0.0/examples/dump_spectrum.py +82 -0
- pytsf-1.0.0/examples/dump_tdf_frame.py +73 -0
- pytsf-1.0.0/examples/make_demo_dataset.py +211 -0
- pytsf-1.0.0/examples/make_demo_tdf_dataset.py +308 -0
- pytsf-1.0.0/examples/tdf_analysis.ipynb +680 -0
- pytsf-1.0.0/examples/tsf_to_imzml.ipynb +590 -0
- pytsf-1.0.0/hatch_build.py +47 -0
- pytsf-1.0.0/pyproject.toml +161 -0
- pytsf-1.0.0/pytsf/__init__.py +40 -0
- pytsf-1.0.0/pytsf/api.py +169 -0
- pytsf-1.0.0/pytsf/bin.py +250 -0
- pytsf-1.0.0/pytsf/calibration_fitted.py +323 -0
- pytsf-1.0.0/pytsf/meta.py +266 -0
- pytsf-1.0.0/pytsf/mobility.py +326 -0
- pytsf-1.0.0/pytsf/tdf.py +423 -0
- pytsf-1.0.0/pytsf/tdf_bin.py +210 -0
- pytsf-1.0.0/tests/oracle.py +316 -0
- pytsf-1.0.0/tests/synth.py +383 -0
- pytsf-1.0.0/tests/test_against_vendor.py +219 -0
- pytsf-1.0.0/tests/test_capi.py +92 -0
- pytsf-1.0.0/tests/test_numpy_ids.py +80 -0
- pytsf-1.0.0/tests/test_tdf.py +279 -0
- pytsf-1.0.0/tests/validate_real_dataset.py +148 -0
- pytsf-1.0.0/tests/validate_real_tdf.py +156 -0
pytsf-1.0.0/.gitignore
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
pip-wheel-metadata/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
# Usually these files are written by a python script from a template
|
|
32
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
33
|
+
*.manifest
|
|
34
|
+
#*.spec
|
|
35
|
+
|
|
36
|
+
# Installer logs
|
|
37
|
+
pip-log.txt
|
|
38
|
+
pip-delete-this-directory.txt
|
|
39
|
+
|
|
40
|
+
# Unit test / coverage reports
|
|
41
|
+
htmlcov/
|
|
42
|
+
.tox/
|
|
43
|
+
.nox/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage.*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
*.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
|
|
53
|
+
# Translations
|
|
54
|
+
*.mo
|
|
55
|
+
*.pot
|
|
56
|
+
|
|
57
|
+
# Django stuff:
|
|
58
|
+
*.log
|
|
59
|
+
local_settings.py
|
|
60
|
+
db.sqlite3
|
|
61
|
+
|
|
62
|
+
# Flask stuff:
|
|
63
|
+
instance/
|
|
64
|
+
.webassets-cache
|
|
65
|
+
|
|
66
|
+
# Scrapy stuff:
|
|
67
|
+
.scrapy
|
|
68
|
+
|
|
69
|
+
# Sphinx documentation
|
|
70
|
+
docs/_build/
|
|
71
|
+
|
|
72
|
+
# PyBuilder
|
|
73
|
+
target/
|
|
74
|
+
|
|
75
|
+
# Jupyter Notebook
|
|
76
|
+
.ipynb_checkpoints
|
|
77
|
+
|
|
78
|
+
# IPython
|
|
79
|
+
profile_default/
|
|
80
|
+
ipython_config.py
|
|
81
|
+
|
|
82
|
+
# pyenv
|
|
83
|
+
.python-version
|
|
84
|
+
|
|
85
|
+
# pipenv
|
|
86
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
87
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
88
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
89
|
+
# install all needed dependencies.
|
|
90
|
+
#Pipfile.lock
|
|
91
|
+
|
|
92
|
+
# celery beat schedule file
|
|
93
|
+
celerybeat-schedule
|
|
94
|
+
|
|
95
|
+
# SageMath parsed files
|
|
96
|
+
*.sage.py
|
|
97
|
+
|
|
98
|
+
# Environments
|
|
99
|
+
.env
|
|
100
|
+
.venv
|
|
101
|
+
env/
|
|
102
|
+
venv/
|
|
103
|
+
ENV/
|
|
104
|
+
env.bak/
|
|
105
|
+
venv.bak/
|
|
106
|
+
|
|
107
|
+
# Spyder project settings
|
|
108
|
+
.spyderproject
|
|
109
|
+
.spyproject
|
|
110
|
+
|
|
111
|
+
# Rope project settings
|
|
112
|
+
.ropeproject
|
|
113
|
+
|
|
114
|
+
# mkdocs documentation
|
|
115
|
+
/site
|
|
116
|
+
src/docs/
|
|
117
|
+
|
|
118
|
+
# mypy
|
|
119
|
+
.mypy_cache/
|
|
120
|
+
.dmypy.json
|
|
121
|
+
dmypy.json
|
|
122
|
+
|
|
123
|
+
# Pyre type checker
|
|
124
|
+
.pyre/
|
|
125
|
+
|
|
126
|
+
*.data/
|
|
127
|
+
*.analysis/
|
|
128
|
+
misc/
|
|
129
|
+
_data/
|
|
130
|
+
|
|
131
|
+
# editors
|
|
132
|
+
.vscode/
|
|
133
|
+
.settings/
|
|
134
|
+
*.DS_Store
|
|
135
|
+
|
|
136
|
+
# qt style data
|
|
137
|
+
_qt_resources_*.py
|
|
138
|
+
|
|
139
|
+
# briefcase
|
|
140
|
+
macOS/
|
|
141
|
+
linux/
|
|
142
|
+
windows/
|
|
143
|
+
|
|
144
|
+
# LiClipse
|
|
145
|
+
.pydevproject
|
|
146
|
+
|
|
147
|
+
# PyCharm stuff
|
|
148
|
+
.idea/
|
|
149
|
+
!.idea/dictionaries/*
|
|
150
|
+
!.idea/watcherTasks.xml
|
|
151
|
+
|
|
152
|
+
*/_version.py
|
|
153
|
+
uv.lock
|
pytsf-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 pytsf contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
THIRD-PARTY NOTICES
|
|
26
|
+
|
|
27
|
+
timsrust (MannLabs) — https://github.com/MannLabs/timsrust
|
|
28
|
+
|
|
29
|
+
The reader for the `analysis.tsf_bin` binary layout in `pytsf/bin.py` and
|
|
30
|
+
`capi/tsf_compat.c` was written with reference to, and derives its description
|
|
31
|
+
of the line-spectrum block from, the `timsrust-tsf` crate. The code here is a
|
|
32
|
+
reimplementation in Python and C, not a copy, and has been modified and
|
|
33
|
+
extended (profile spectra, peak widths) relative to the original.
|
|
34
|
+
|
|
35
|
+
At the time of writing, that repository's top-level LICENSE file contains the
|
|
36
|
+
MIT License text reproduced below, while its crate manifests and README state
|
|
37
|
+
Apache License 2.0. To satisfy either reading, this notice (a) reproduces the
|
|
38
|
+
MIT permission notice in full, as MIT requires, and (b) provides the copyright
|
|
39
|
+
attribution, statement of modification, and licence reference that Apache
|
|
40
|
+
License 2.0 §4 requires for derivative works. The Apache License 2.0 text is
|
|
41
|
+
available at http://www.apache.org/licenses/LICENSE-2.0. If MannLabs clarifies
|
|
42
|
+
the intended licence, this notice should be updated to match.
|
|
43
|
+
|
|
44
|
+
MIT License
|
|
45
|
+
|
|
46
|
+
Copyright 2026 MannLabs
|
|
47
|
+
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
49
|
+
copy of this software and associated documentation files (the "Software"),
|
|
50
|
+
to deal in the Software without restriction, including without limitation
|
|
51
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
52
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
|
53
|
+
Software is furnished to do so, subject to the following conditions:
|
|
54
|
+
|
|
55
|
+
The above copyright notice and this permission notice shall be included in
|
|
56
|
+
all copies or substantial portions of the Software.
|
|
57
|
+
|
|
58
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
59
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
60
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
61
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
62
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
63
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
64
|
+
DEALINGS IN THE SOFTWARE.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
This project contains no Bruker source code and redistributes no Bruker
|
|
69
|
+
binaries. "Bruker", "timsTOF" and "tdf-sdk" are names of Bruker Daltonics
|
|
70
|
+
products used only to identify the data format this software reads; this
|
|
71
|
+
project is not affiliated with or endorsed by Bruker. See PROVENANCE.md.
|