imicpe 1.0.1__tar.gz → 1.0.3__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.
Files changed (27) hide show
  1. {imicpe-1.0.1 → imicpe-1.0.3}/PKG-INFO +2 -2
  2. {imicpe-1.0.1 → imicpe-1.0.3}/pyproject.toml +1 -1
  3. imicpe-1.0.3/src/imicpe/_version.py +1 -0
  4. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe/cs/l1.py +9 -10
  5. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe/cs/tikhonov.py +9 -10
  6. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe/optim/metrics.py +1 -1
  7. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe.egg-info/PKG-INFO +2 -2
  8. imicpe-1.0.1/src/imicpe/_version.py +0 -1
  9. {imicpe-1.0.1 → imicpe-1.0.3}/DESCRIPTION.md +0 -0
  10. {imicpe-1.0.1 → imicpe-1.0.3}/LICENSE +0 -0
  11. {imicpe-1.0.1 → imicpe-1.0.3}/README.md +0 -0
  12. {imicpe-1.0.1 → imicpe-1.0.3}/setup.cfg +0 -0
  13. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe/__init__.py +0 -0
  14. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe/cs/__init__.py +0 -0
  15. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe/cs/masks.py +0 -0
  16. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe/cs/metrics.py +0 -0
  17. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe/cs/operators.py +0 -0
  18. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe/cs/shepp_logan_phantom.py +0 -0
  19. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe/optim/__init__.py +0 -0
  20. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe/optim/operators.py +0 -0
  21. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe/optim/pnnDataset.py +0 -0
  22. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe/optim/pnnTrainer.py +0 -0
  23. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe/optim/pnnUtils.py +0 -0
  24. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe.egg-info/SOURCES.txt +0 -0
  25. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe.egg-info/dependency_links.txt +0 -0
  26. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe.egg-info/requires.txt +0 -0
  27. {imicpe-1.0.1 → imicpe-1.0.3}/src/imicpe.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: imicpe
3
- Version: 1.0.1
3
+ Version: 1.0.3
4
4
  Summary: Toolbox for Maths,Signal,Image Teaching @ CPE
5
5
  Author-email: Marion Foare <marion.foare@cpe.fr>, Eric Van Reeth <eric.vanreeth@cpe.fr>, Arthur Gautheron <arthur.gautheron@cpe.fr>
6
6
  License: MIT License
@@ -14,7 +14,7 @@ mypkg = ["*.txt", "*.mat", "*.npy"]
14
14
  #[tool.setuptools_scm]
15
15
 
16
16
  [project]
17
- version="1.0.1"
17
+ version="1.0.3"
18
18
  name = "imicpe"
19
19
  authors = [
20
20
  { name="Marion Foare", email="marion.foare@cpe.fr" },
@@ -0,0 +1 @@
1
+ __version__="1.0.3"
@@ -32,16 +32,15 @@ def l1(opreg,A,At,z,x0,lam):
32
32
 
33
33
  ### init ###
34
34
  dim = x0.ndim
35
- match opreg:
36
- case 'id':
37
- G = Id
38
- Gt = Id
39
- case 'gradient':
40
- G = D
41
- Gt = Dt
42
- case 'laplacien':
43
- G = L
44
- Gt = Lt
35
+ if opreg == 'id':
36
+ G = Id
37
+ Gt = Id
38
+ elif opreg == 'gradient':
39
+ G = D
40
+ Gt = Dt
41
+ if opreg == 'laplacien':
42
+ G = L
43
+ Gt = Lt
45
44
 
46
45
  # operator norms
47
46
  lipA = opNorm(A,At,dim,x0)
@@ -29,16 +29,15 @@ def tikhonov(opreg,A,At,z,x0,lam):
29
29
 
30
30
  ### init ###
31
31
  dim = x0.ndim
32
- match opreg:
33
- case 'id':
34
- G = Id
35
- Gt = Id
36
- case 'gradient':
37
- G = D
38
- Gt = Dt
39
- case 'laplacien':
40
- G = L
41
- Gt = Lt
32
+ if opreg == 'id':
33
+ G = Id
34
+ Gt = Id
35
+ elif opreg == 'gradient':
36
+ G = D
37
+ Gt = Dt
38
+ if opreg == 'laplacien':
39
+ G = L
40
+ Gt = Lt
42
41
 
43
42
  # operator norms
44
43
  lipA = opNorm(A,At,dim,x0)
@@ -2,7 +2,7 @@ import numpy as np
2
2
  import torch
3
3
 
4
4
  def mse(I,ref):
5
- return np.round(np.sum((I-ref)**2)/I.size,2)
5
+ return np.round(np.sum((I-ref)**2)/I.size,5)
6
6
 
7
7
  def snr(I,ref):
8
8
  return np.round(10* np.log10(np.sum(ref**2)/np.sum((I-ref)**2)),2)
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: imicpe
3
- Version: 1.0.1
3
+ Version: 1.0.3
4
4
  Summary: Toolbox for Maths,Signal,Image Teaching @ CPE
5
5
  Author-email: Marion Foare <marion.foare@cpe.fr>, Eric Van Reeth <eric.vanreeth@cpe.fr>, Arthur Gautheron <arthur.gautheron@cpe.fr>
6
6
  License: MIT License
@@ -1 +0,0 @@
1
- __version__="1.0.1"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes