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.
@@ -1,7 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyTRACTnmr
3
- Version: 0.1.2b1
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 pytractnmr
51
+ uvx pyTRACTnmr
49
52
  ```
50
53
 
51
54
  #### Using pip
@@ -30,7 +30,7 @@
30
30
  The fastest way to try pyTRACTnmr without installation is:
31
31
 
32
32
  ```bash
33
- uvx pytractnmr
33
+ uvx pyTRACTnmr
34
34
  ```
35
35
 
36
36
  #### Using pip
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyTRACTnmr"
3
- version = "0.1.2b1"
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
- pytractnmr = "pyTRACTnmr.main:main"
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 .window import TractApp
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, Dict
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("No delay list found (vdlist) and no external list provided.")
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: np.ndarray[np.float64], a: float, r: float) -> np.ndarray[np.float64]:
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 .widgets import MplCanvas, CustomNavigationToolbar
33
- from . import processing
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):
@@ -400,7 +400,7 @@ wheels = [
400
400
 
401
401
  [[package]]
402
402
  name = "pytractnmr"
403
- version = "0.1.2b1"
403
+ version = "0.1.2b3"
404
404
  source = { editable = "." }
405
405
  dependencies = [
406
406
  { name = "matplotlib" },
File without changes
File without changes