pyTRACTnmr 0.1.2b1__tar.gz → 0.1.2b2__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.2b2
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyTRACTnmr"
3
- version = "0.1.2b1"
3
+ version = "0.1.2b2"
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,8 @@
1
1
  import sys
2
2
  from PySide6.QtWidgets import QApplication
3
- try:
4
- from .window import TractApp
5
- except ImportError:
6
- from window import TractApp
3
+
4
+ from window import TractApp # type: ignore
5
+
7
6
 
8
7
  def main():
9
8
  app = QApplication(sys.argv)
@@ -11,5 +10,6 @@ def main():
11
10
  window.show()
12
11
  sys.exit(app.exec())
13
12
 
13
+
14
14
  if __name__ == "__main__":
15
15
  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
  """
@@ -28,12 +28,8 @@ from PySide6.QtCore import Qt, QPoint
28
28
 
29
29
  from matplotlib.widgets import SpanSelector
30
30
 
31
- try:
32
- from .widgets import MplCanvas, CustomNavigationToolbar
33
- from . import processing
34
- except ImportError:
35
- from widgets import MplCanvas, CustomNavigationToolbar
36
- import processing
31
+ from widgets import MplCanvas, CustomNavigationToolbar # type: ignore
32
+ import processing # type: ignore
37
33
 
38
34
 
39
35
  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.2b2"
404
404
  source = { editable = "." }
405
405
  dependencies = [
406
406
  { name = "matplotlib" },
File without changes
File without changes
File without changes