CUQIpy 1.3.0.post0.dev16__py3-none-any.whl → 1.3.0.post0.dev20__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-02-21T15:28:16+0100",
11
+ "date": "2025-03-17T12:59:53+0100",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "d6846122ee3d1002dfd199cd586caa4cf3a18188",
15
- "version": "1.3.0.post0.dev16"
14
+ "full-revisionid": "f5b55b44a116f72579cc778177a558d773646dae",
15
+ "version": "1.3.0.post0.dev20"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -37,7 +37,7 @@ class TruncatedNormal(Distribution):
37
37
  p = cuqi.distribution.TruncatedNormal(mean=0, std=1, low=-2, high=2)
38
38
  samples = p.sample(5000)
39
39
  """
40
- def __init__(self, mean=None, std=None, low=-np.Inf, high=np.Inf, is_symmetric=False, **kwargs):
40
+ def __init__(self, mean=None, std=None, low=-np.inf, high=np.inf, is_symmetric=False, **kwargs):
41
41
  # Init from abstract distribution class
42
42
  super().__init__(is_symmetric=is_symmetric, **kwargs)
43
43
 
@@ -228,9 +228,15 @@ class Geometry(ABC):
228
228
  if self.par_shape == self.fun_shape:
229
229
  return "{}[{}]".format(self.__class__.__name__,
230
230
  self.par_shape if len(self.par_shape) != 1 else self.par_shape[0])
231
- return "{}[{}: {}]".format(self.__class__.__name__,
232
- self.par_shape if len(self.par_shape) != 1 else self.par_shape[0],
233
- self.fun_shape if len(self.fun_shape) != 1 else self.fun_shape[0])
231
+ return "{}[{}: {}]".format(
232
+ self.__class__.__name__,
233
+ self.par_shape if len(self.par_shape) != 1 else self.par_shape[0],
234
+ (
235
+ self.fun_shape
236
+ if (self.fun_shape is None or len(self.fun_shape) != 1)
237
+ else self.fun_shape[0]
238
+ ),
239
+ )
234
240
 
235
241
  def _all_values_equal(self, obj):
236
242
  """Returns true of all values of the object and self are equal"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: CUQIpy
3
- Version: 1.3.0.post0.dev16
3
+ Version: 1.3.0.post0.dev20
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
@@ -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=ZAES0saS4dqcS3z5EDJSVld3elEU-Crw-coYeD3pirw,509
3
+ cuqi/_version.py,sha256=EBxdo_g53x940-2MDidfFEkpg3JmqMyvwG_XAPMHYL8,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
@@ -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=sZkLYgnkGOyS_3ZxY7iw6L62t-Jh6shzsweRsRepN2k,4240
35
+ cuqi/distribution/_truncated_normal.py,sha256=YmOm1ng8F97Ai0Jtm69cK6sKnrFvzOFN9xDO6Rmau2Q,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
@@ -56,7 +56,7 @@ cuqi/experimental/mcmc/_rto.py,sha256=2RJm1NMIvmCbTBn0M8S8vNLaRjaS1_7S9gVOdG9I8B
56
56
  cuqi/experimental/mcmc/_sampler.py,sha256=VK-VsPRaYET43C5quhu2f1OstEX5DKYKVyjKABTRHZE,20288
57
57
  cuqi/experimental/mcmc/_utilities.py,sha256=kUzHbhIS3HYZRbneNBK41IogUYX5dS_bJxqEGm7TQBI,525
58
58
  cuqi/geometry/__init__.py,sha256=Tz1WGzZBY-QGH3c0GiyKm9XHN8MGGcnU6TUHLZkzB3o,842
59
- cuqi/geometry/_geometry.py,sha256=ma8eSq12YDj8qozuDIPfZEV7fXBRK0pGjYUU5ewBQIs,47493
59
+ cuqi/geometry/_geometry.py,sha256=W-oQTZPelVS7fN9qZj6bNBuh-yY0eqOHJ39UwB-WmQY,47562
60
60
  cuqi/implicitprior/__init__.py,sha256=6z3lvw-tWDyjZSpB3pYzvijSMK9Zlf1IYqOVTtMD2h4,309
61
61
  cuqi/implicitprior/_regularizedGMRF.py,sha256=BUeT4rwJzary9K56fkxCNGCeKZd-2VSgOT8XNHxFPRE,6345
62
62
  cuqi/implicitprior/_regularizedGaussian.py,sha256=whTitoB5ZvWg8jm7ipugR_1ouK1M2EGrfwAnr46xDnE,19395
@@ -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.dev16.dist-info/LICENSE,sha256=kJWRPrtRoQoZGXyyvu50Uc91X6_0XRaVfT0YZssicys,10799
97
- CUQIpy-1.3.0.post0.dev16.dist-info/METADATA,sha256=xfOSP8vGjYONXJKu-svH44l-xxAqQuLjXa8XtrY7Gio,18528
98
- CUQIpy-1.3.0.post0.dev16.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
99
- CUQIpy-1.3.0.post0.dev16.dist-info/top_level.txt,sha256=AgmgMc6TKfPPqbjV0kvAoCBN334i_Lwwojc7HE3ZwD0,5
100
- CUQIpy-1.3.0.post0.dev16.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (76.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5