CUQIpy 1.3.0.post0.dev20__py3-none-any.whl → 1.3.0.post0.dev31__py3-none-any.whl

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.

Potentially problematic release.


This version of CUQIpy might be problematic. Click here for more details.

cuqi/_version.py CHANGED
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2025-03-17T12:59:53+0100",
11
+ "date": "2025-03-18T12:15:45+0300",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "f5b55b44a116f72579cc778177a558d773646dae",
15
- "version": "1.3.0.post0.dev20"
14
+ "full-revisionid": "61f29c79e738c5a49f246ab10bb96bace115c9d4",
15
+ "version": "1.3.0.post0.dev31"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -48,7 +48,7 @@ class Beta(Distribution):
48
48
 
49
49
  # Check bounds
50
50
  if np.any(x<=0) or np.any(x>=1) or np.any(self.alpha<=0) or np.any(self.beta<=0):
51
- return -np.Inf
51
+ return -np.inf
52
52
 
53
53
  # Compute logpdf
54
54
  return np.sum(sps.beta.logpdf(x, a=self.alpha, b=self.beta))
@@ -75,14 +75,14 @@ class Cauchy(Distribution):
75
75
  def logpdf(self, x):
76
76
 
77
77
  if self._is_out_of_bounds(x):
78
- return -np.Inf
78
+ return -np.inf
79
79
 
80
80
  return np.sum(-np.log(np.pi*self.scale*(1+((x-self.location)/self.scale)**2)))
81
81
 
82
82
  def cdf(self, x):
83
83
 
84
84
  if self._is_out_of_bounds(x):
85
- return -np.Inf
85
+ return -np.inf
86
86
 
87
87
  return np.sum(sps.cauchy.cdf(x, loc=self.location, scale=self.scale))
88
88
 
@@ -97,7 +97,7 @@ class TruncatedNormal(Distribution):
97
97
  # the unnormalized logpdf
98
98
  # check if x falls in the range between np.array a and b
99
99
  if np.any(x < self.low) or np.any(x > self.high):
100
- return -np.Inf
100
+ return -np.inf
101
101
  else:
102
102
  return self._normal.logpdf(x)
103
103
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: CUQIpy
3
- Version: 1.3.0.post0.dev20
3
+ Version: 1.3.0.post0.dev31
4
4
  Summary: Computational Uncertainty Quantification for Inverse problems in Python
5
5
  Maintainer-email: "Nicolai A. B. Riis" <nabr@dtu.dk>, "Jakob S. Jørgensen" <jakj@dtu.dk>, "Amal M. Alghamdi" <amaal@dtu.dk>, Chao Zhang <chaz@dtu.dk>
6
6
  License: Apache License
@@ -197,7 +197,7 @@ Project-URL: Source, https://github.com/CUQI-DTU/CUQIpy
197
197
  Project-URL: Documentation, https://cuqi-dtu.github.io/CUQIpy/
198
198
  Project-URL: Download, https://github.com/CUQI-DTU/CUQIpy/releases
199
199
  Project-URL: Tracker, https://github.com/CUQI-DTU/CUQIpy/issues
200
- Requires-Python: >=3.8
200
+ Requires-Python: >=3.9
201
201
  Description-Content-Type: text/markdown
202
202
  License-File: LICENSE
203
203
  Requires-Dist: matplotlib
@@ -1,6 +1,6 @@
1
1
  cuqi/__init__.py,sha256=LsGilhl-hBLEn6Glt8S_l0OJzAA1sKit_rui8h-D-p0,488
2
2
  cuqi/_messages.py,sha256=fzEBrZT2kbmfecBBPm7spVu7yHdxGARQB4QzXhJbCJ0,415
3
- cuqi/_version.py,sha256=EBxdo_g53x940-2MDidfFEkpg3JmqMyvwG_XAPMHYL8,509
3
+ cuqi/_version.py,sha256=vM2QDnQeIvK2PX5hSudMthXA60Z65l2oc0q9bxbMntQ,509
4
4
  cuqi/config.py,sha256=wcYvz19wkeKW2EKCGIKJiTpWt5kdaxyt4imyRkvtTRA,526
5
5
  cuqi/diagnostics.py,sha256=5OrbJeqpynqRXOe5MtOKKhe7EAVdOEpHIqHnlMW9G_c,3029
6
6
  cuqi/array/__init__.py,sha256=-EeiaiWGNsE3twRS4dD814BIlfxEsNkTCZUc5gjOXb0,30
@@ -15,8 +15,8 @@ cuqi/data/satellite.mat,sha256=a0Nz_Ak-Y0m360dH74pa_rpk-MhaQ91ftGTKhQX7I8g,16373
15
15
  cuqi/density/__init__.py,sha256=0zfVcPgqdqiPkss5n_WP_PUt-G3ovHXjokhqEKIlLwA,48
16
16
  cuqi/density/_density.py,sha256=BG7gtP0cbFYLVgjYQGkNAhM95PR5ocBVLKRlOVX2PyM,7253
17
17
  cuqi/distribution/__init__.py,sha256=Vvw-ge5HAF1now9n4rcwDicCsEUN9_jbbxlKxyzeUuY,761
18
- cuqi/distribution/_beta.py,sha256=lgN6PGoF9RXQtrMGqSaSBV0hw-LEsOfRTD2Q2L3-Ok4,2903
19
- cuqi/distribution/_cauchy.py,sha256=UsVXYz8HhagXN5fIWSAIyELqhsJAX_-wk9kkRGgRmA8,3296
18
+ cuqi/distribution/_beta.py,sha256=QlibnuHNcvWjl-du5aRc9QuzS3n4PsyD_8Nc47w-E0Q,2903
19
+ cuqi/distribution/_cauchy.py,sha256=Qwi21WkwUBnBkLbhR-yCGO0tQ_U_3mmvR0pDMPPPB5c,3296
20
20
  cuqi/distribution/_cmrf.py,sha256=tCbEulM_O7FB3C_W-3IqZp9zGHkTofCdFF0ybHc9UZI,3745
21
21
  cuqi/distribution/_custom.py,sha256=11lnAG7CS15bpV6JOOP--2YyKnAduvXY1IjAOJ1tqO0,10504
22
22
  cuqi/distribution/_distribution.py,sha256=mDSOjm2-f1we9wbfii2QEZ8gx03X_iZDt9XY4AGlOvE,17982
@@ -32,7 +32,7 @@ cuqi/distribution/_modifiedhalfnormal.py,sha256=ErULXUFRjbMyCYywaOzfuxtoy-XQmC0M
32
32
  cuqi/distribution/_normal.py,sha256=vhIiAseW09IKh1uy0KUq7RP1IuY7hH5aNM1W_R8Gd_Q,2912
33
33
  cuqi/distribution/_posterior.py,sha256=zAfL0GECxekZ2lBt1W6_LN0U_xskMwK4VNce5xAF7ig,5018
34
34
  cuqi/distribution/_smoothed_laplace.py,sha256=p-1Y23mYA9omwiHGkEuv3T2mwcPAAoNlCr7T8osNkjE,2925
35
- cuqi/distribution/_truncated_normal.py,sha256=YmOm1ng8F97Ai0Jtm69cK6sKnrFvzOFN9xDO6Rmau2Q,4240
35
+ cuqi/distribution/_truncated_normal.py,sha256=sPaveXTij_yRZg-609zfwzGjHJOzZVenvYaYK0krUec,4240
36
36
  cuqi/distribution/_uniform.py,sha256=KA8yQ6ZS3nQGS4PYJ4hpDg6Eq8EQKQvPsIpYfR8fj2w,1967
37
37
  cuqi/experimental/__init__.py,sha256=bIQ9OroeitHbwgNe3wI_JvzkILK0N25Tt7wpquPoU3w,129
38
38
  cuqi/experimental/algebra/__init__.py,sha256=btRAWG58ZfdtK0afXKOg60AX7d76KMBjlZa4AWBCCgU,81
@@ -93,8 +93,8 @@ cuqi/testproblem/_testproblem.py,sha256=x769LwwRdJdzIiZkcQUGb_5-vynNTNALXWKato7s
93
93
  cuqi/utilities/__init__.py,sha256=RB84VstmFcZgPOz58LKSzOvCVebbeKDcKl9MGk-EwoA,515
94
94
  cuqi/utilities/_get_python_variable_name.py,sha256=wxpCaj9f3ZtBNqlGmmuGiITgBaTsY-r94lUIlK6UAU4,2043
95
95
  cuqi/utilities/_utilities.py,sha256=gc9YAj7wFKzyZTE1H5iI_1Tt4AtjT1g5l1-zxBdH-Co,15281
96
- cuqipy-1.3.0.post0.dev20.dist-info/LICENSE,sha256=kJWRPrtRoQoZGXyyvu50Uc91X6_0XRaVfT0YZssicys,10799
97
- cuqipy-1.3.0.post0.dev20.dist-info/METADATA,sha256=sde7cAPQv2oQul-52r-tCkBVWmkyuGNqg9Wa4EqjAug,18528
98
- cuqipy-1.3.0.post0.dev20.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
99
- cuqipy-1.3.0.post0.dev20.dist-info/top_level.txt,sha256=AgmgMc6TKfPPqbjV0kvAoCBN334i_Lwwojc7HE3ZwD0,5
100
- cuqipy-1.3.0.post0.dev20.dist-info/RECORD,,
96
+ cuqipy-1.3.0.post0.dev31.dist-info/LICENSE,sha256=kJWRPrtRoQoZGXyyvu50Uc91X6_0XRaVfT0YZssicys,10799
97
+ cuqipy-1.3.0.post0.dev31.dist-info/METADATA,sha256=B_OuVcjxv3PeT0zwaxbp62qZCTwBnshaQY0oeNEtsiM,18528
98
+ cuqipy-1.3.0.post0.dev31.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
99
+ cuqipy-1.3.0.post0.dev31.dist-info/top_level.txt,sha256=AgmgMc6TKfPPqbjV0kvAoCBN334i_Lwwojc7HE3ZwD0,5
100
+ cuqipy-1.3.0.post0.dev31.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.0.0)
2
+ Generator: setuptools (76.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5