pyTRACTnmr 0.1.2b1__tar.gz → 0.1.2b3__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.
- {pytractnmr-0.1.2b1 → pytractnmr-0.1.2b3}/PKG-INFO +5 -2
- {pytractnmr-0.1.2b1 → pytractnmr-0.1.2b3}/README.md +1 -1
- {pytractnmr-0.1.2b1 → pytractnmr-0.1.2b3}/pyproject.toml +8 -2
- {pytractnmr-0.1.2b1 → pytractnmr-0.1.2b3}/src/pyTRACTnmr/main.py +5 -2
- {pytractnmr-0.1.2b1 → pytractnmr-0.1.2b3}/src/pyTRACTnmr/processing.py +5 -8
- {pytractnmr-0.1.2b1 → pytractnmr-0.1.2b3}/src/pyTRACTnmr/window.py +6 -4
- {pytractnmr-0.1.2b1 → pytractnmr-0.1.2b3}/uv.lock +1 -1
- {pytractnmr-0.1.2b1 → pytractnmr-0.1.2b3}/.gitignore +0 -0
- {pytractnmr-0.1.2b1 → pytractnmr-0.1.2b3}/.python-version +0 -0
- {pytractnmr-0.1.2b1 → pytractnmr-0.1.2b3}/LICENSE +0 -0
- {pytractnmr-0.1.2b1 → pytractnmr-0.1.2b3}/src/pyTRACTnmr/__init__.py +0 -0
- {pytractnmr-0.1.2b1 → pytractnmr-0.1.2b3}/src/pyTRACTnmr/widgets.py +0 -0
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyTRACTnmr
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2b3
|
|
4
4
|
Summary: A simple gui based application to process and analyse TRACT data from NMR spectroscopy.
|
|
5
|
+
Project-URL: Homepage, https://github.com/debadutta-patra/pyTRACTnmr
|
|
6
|
+
Project-URL: Repository, https://github.com/debadutta-patra/pyTRACTnmr
|
|
7
|
+
Project-URL: Issues, https://github.com/debadutta-patra/pyTRACTnmr/issues
|
|
5
8
|
License-File: LICENSE
|
|
6
9
|
Requires-Python: >=3.14
|
|
7
10
|
Requires-Dist: matplotlib>=3.10.8
|
|
@@ -45,7 +48,7 @@ Description-Content-Type: text/markdown
|
|
|
45
48
|
The fastest way to try pyTRACTnmr without installation is:
|
|
46
49
|
|
|
47
50
|
```bash
|
|
48
|
-
uvx
|
|
51
|
+
uvx pyTRACTnmr
|
|
49
52
|
```
|
|
50
53
|
|
|
51
54
|
#### Using pip
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pyTRACTnmr"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.2b3"
|
|
4
4
|
description = "A simple gui based application to process and analyse TRACT data from NMR spectroscopy."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.14"
|
|
@@ -14,8 +14,14 @@ dependencies = [
|
|
|
14
14
|
"scipy-stubs>=1.17.0.2",
|
|
15
15
|
]
|
|
16
16
|
|
|
17
|
+
[project.urls]
|
|
18
|
+
Homepage = "https://github.com/debadutta-patra/pyTRACTnmr"
|
|
19
|
+
Repository = "https://github.com/debadutta-patra/pyTRACTnmr"
|
|
20
|
+
Issues = "https://github.com/debadutta-patra/pyTRACTnmr/issues"
|
|
21
|
+
|
|
22
|
+
|
|
17
23
|
[project.scripts]
|
|
18
|
-
|
|
24
|
+
pyTRACTnmr = "pyTRACTnmr.main:main"
|
|
19
25
|
|
|
20
26
|
[build-system]
|
|
21
27
|
requires = ["hatchling"]
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
from PySide6.QtWidgets import QApplication
|
|
3
|
+
|
|
3
4
|
try:
|
|
4
|
-
from
|
|
5
|
+
from window import TractApp # type: ignore
|
|
5
6
|
except ImportError:
|
|
6
|
-
from window import TractApp
|
|
7
|
+
from .window import TractApp # type: ignore
|
|
8
|
+
|
|
7
9
|
|
|
8
10
|
def main():
|
|
9
11
|
app = QApplication(sys.argv)
|
|
@@ -11,5 +13,6 @@ def main():
|
|
|
11
13
|
window.show()
|
|
12
14
|
sys.exit(app.exec())
|
|
13
15
|
|
|
16
|
+
|
|
14
17
|
if __name__ == "__main__":
|
|
15
18
|
main()
|
|
@@ -2,7 +2,7 @@ import os
|
|
|
2
2
|
import numpy as np
|
|
3
3
|
import nmrglue as ng # type: ignore
|
|
4
4
|
from scipy.optimize import curve_fit
|
|
5
|
-
from typing import Optional, Tuple, List
|
|
5
|
+
from typing import Optional, Tuple, List
|
|
6
6
|
import logging
|
|
7
7
|
from typing_extensions import deprecated
|
|
8
8
|
|
|
@@ -57,7 +57,9 @@ class TractBruker:
|
|
|
57
57
|
if os.path.exists(vdlist_path):
|
|
58
58
|
self.delays = self._read_delays(vdlist_path)
|
|
59
59
|
else:
|
|
60
|
-
raise ValueError(
|
|
60
|
+
raise ValueError(
|
|
61
|
+
"No delay list found (vdlist) and no external list provided."
|
|
62
|
+
)
|
|
61
63
|
|
|
62
64
|
self.alpha_spectra: List[np.ndarray] = []
|
|
63
65
|
self.beta_spectra: List[np.ndarray] = []
|
|
@@ -250,14 +252,9 @@ class TractBruker:
|
|
|
250
252
|
self.integrate_indices(start, end)
|
|
251
253
|
|
|
252
254
|
@staticmethod
|
|
253
|
-
def _relax(x
|
|
255
|
+
def _relax(x, a, r) -> np.ndarray:
|
|
254
256
|
"""Internal function for exponential decay
|
|
255
257
|
|
|
256
|
-
Args:
|
|
257
|
-
x (np.ndarray): X values
|
|
258
|
-
a (float): Amplitude
|
|
259
|
-
r (float): Decay rate
|
|
260
|
-
|
|
261
258
|
Returns:
|
|
262
259
|
float | np.ndarray: Y values
|
|
263
260
|
"""
|
|
@@ -29,11 +29,13 @@ from PySide6.QtCore import Qt, QPoint
|
|
|
29
29
|
from matplotlib.widgets import SpanSelector
|
|
30
30
|
|
|
31
31
|
try:
|
|
32
|
-
from
|
|
33
|
-
|
|
32
|
+
from widgets import MplCanvas, CustomNavigationToolbar # type: ignore
|
|
33
|
+
import processing # type: ignore
|
|
34
34
|
except ImportError:
|
|
35
|
-
from widgets import MplCanvas, CustomNavigationToolbar
|
|
36
|
-
import processing
|
|
35
|
+
from .widgets import MplCanvas, CustomNavigationToolbar # type: ignore
|
|
36
|
+
from . import processing # type: ignore
|
|
37
|
+
|
|
38
|
+
|
|
37
39
|
|
|
38
40
|
|
|
39
41
|
class TractApp(QMainWindow):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|