CUQIpy 1.2.0.post0.dev294__py3-none-any.whl → 1.2.0.post0.dev305__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: CUQIpy
3
- Version: 1.2.0.post0.dev294
3
+ Version: 1.2.0.post0.dev305
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=CRmDXEkBbTbvKfpJXpazyEWYTSKkfhxALDOf_iKJkE4,510
3
+ cuqi/_version.py,sha256=CQLIC5_dwm8tSsiUeJmyVr-z-B8P5Oay1-7eVxbDQkk,510
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
@@ -42,7 +42,7 @@ cuqi/experimental/mcmc/_cwmh.py,sha256=50v3uZaWhlVnfrEB5-lB_7pn8QoUVBe-xWxKGKbmN
42
42
  cuqi/experimental/mcmc/_direct.py,sha256=9pQS_2Qk2-ybt6m8WTfPoKetcxQ00WaTRN85-Z0FrBY,777
43
43
  cuqi/experimental/mcmc/_gibbs.py,sha256=evgxf2tLFLlKB3hN0qz9a9NcZQSES8wdacnn3uNWocQ,12005
44
44
  cuqi/experimental/mcmc/_hmc.py,sha256=8p4QxZBRpFLzwamH-DWHSdZE0aXX3FqonBzczz_XkDw,19340
45
- cuqi/experimental/mcmc/_langevin_algorithm.py,sha256=LtPdC1IAeF_gS3T93FDLFutXy7THw-JqZeywZExpefo,14527
45
+ cuqi/experimental/mcmc/_langevin_algorithm.py,sha256=NIoCLKL5x89Bxm-JLDLR_NTunREfUohospmIGsGUgJA,14619
46
46
  cuqi/experimental/mcmc/_laplace_approximation.py,sha256=XcGIa2wl9nCSTtAFurejYYOKkDVAJ22q75xQKsyu2nI,5803
47
47
  cuqi/experimental/mcmc/_mh.py,sha256=MXo0ahXP4KGFkaY4HtvcBE-TMQzsMlTmLKzSvpz7drU,2941
48
48
  cuqi/experimental/mcmc/_pcn.py,sha256=wqJBZLuRFSwxihaI53tumAg6AWVuceLMOmXssTetd1A,3374
@@ -87,8 +87,8 @@ cuqi/testproblem/_testproblem.py,sha256=x769LwwRdJdzIiZkcQUGb_5-vynNTNALXWKato7s
87
87
  cuqi/utilities/__init__.py,sha256=H7xpJe2UinjZftKvE2JuXtTi4DqtkR6uIezStAXwfGg,428
88
88
  cuqi/utilities/_get_python_variable_name.py,sha256=QwlBVj2koJRA8s8pWd554p7-ElcI7HUwY32HknaR92E,1827
89
89
  cuqi/utilities/_utilities.py,sha256=Jc4knn80vLoA7kgw9FzXwKVFGaNBOXiA9kgvltZU3Ao,11777
90
- CUQIpy-1.2.0.post0.dev294.dist-info/LICENSE,sha256=kJWRPrtRoQoZGXyyvu50Uc91X6_0XRaVfT0YZssicys,10799
91
- CUQIpy-1.2.0.post0.dev294.dist-info/METADATA,sha256=2egodevuhjO5J4cPodLUGRymsjvvR6zYFueC7bfwG18,18496
92
- CUQIpy-1.2.0.post0.dev294.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
93
- CUQIpy-1.2.0.post0.dev294.dist-info/top_level.txt,sha256=AgmgMc6TKfPPqbjV0kvAoCBN334i_Lwwojc7HE3ZwD0,5
94
- CUQIpy-1.2.0.post0.dev294.dist-info/RECORD,,
90
+ CUQIpy-1.2.0.post0.dev305.dist-info/LICENSE,sha256=kJWRPrtRoQoZGXyyvu50Uc91X6_0XRaVfT0YZssicys,10799
91
+ CUQIpy-1.2.0.post0.dev305.dist-info/METADATA,sha256=HMjktvjoT8Oo0N4v-2SYK5MnRGT6RdeqEwnQ2pMsAik,18496
92
+ CUQIpy-1.2.0.post0.dev305.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
93
+ CUQIpy-1.2.0.post0.dev305.dist-info/top_level.txt,sha256=AgmgMc6TKfPPqbjV0kvAoCBN334i_Lwwojc7HE3ZwD0,5
94
+ CUQIpy-1.2.0.post0.dev305.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.3.0)
2
+ Generator: setuptools (75.5.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
cuqi/_version.py CHANGED
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2024-11-11T14:11:48+0100",
11
+ "date": "2024-11-19T23:04:41+0300",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "231aec2928a511ab48f0c9628b93646ef51c3c8f",
15
- "version": "1.2.0.post0.dev294"
14
+ "full-revisionid": "40cfaf6a083e595a757ef044e21ab931a869b2fe",
15
+ "version": "1.2.0.post0.dev305"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -3,7 +3,7 @@ import cuqi
3
3
  from cuqi.experimental.mcmc import Sampler
4
4
  from cuqi.implicitprior import RestorationPrior, MoreauYoshidaPrior
5
5
  from cuqi.array import CUQIarray
6
- from copy import deepcopy
6
+ from copy import copy
7
7
 
8
8
  class ULA(Sampler): # Refactor to Proposal-based sampler?
9
9
  """Unadjusted Langevin algorithm (ULA) (Roberts and Tweedie, 1996)
@@ -316,11 +316,14 @@ class MYULA(ULA):
316
316
 
317
317
  def _create_smoothed_target(self, value):
318
318
  """ Create a smoothed target using a Moreau-Yoshida envelope. """
319
- copied_value = deepcopy(value)
319
+ copied_value = copy(value)
320
320
  if isinstance(copied_value.prior, RestorationPrior):
321
+ # Acceess the prior name
322
+ name = value.prior.name
321
323
  copied_value.prior = MoreauYoshidaPrior(
322
324
  copied_value.prior,
323
- self.smoothing_strength)
325
+ self.smoothing_strength,
326
+ name=name)
324
327
  return copied_value
325
328
 
326
329
  def validate_target(self):