Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • P ProxPython
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5
    • Issues 5
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • nam
  • ProxPython
  • Issues
  • #9

Closed
Open
Created Jul 08, 2020 by Russell Luke@rluke1Owner

Noise not working in JWST experiment

I created a demo to run CDRl on JWST with noise. I got the following error:

[nix-shell:~/work/git/ProxPython/demos]$ python3 JWST_CDRl.py

Loading data.

Traceback (most recent call last):

File "JWST_CDRl.py", line 6, in JWST = JWST_Experiment(algorithm = 'CDRl', lambda_0 = 0.5, lambda_max = 0.5, noise = 'Poisson', MAXIT = 1000)

File "/home/rluke1/work/git/ProxPython/demos/../proxtoolbox/experiments/experiment.py", line 39, in call obj.initialize() # initialize experiment object

File "/home/rluke1/work/git/ProxPython/demos/../proxtoolbox/experiments/experiment.py", line 223, in initialize self.loadData()

File "/home/rluke1/work/git/ProxPython/demos/../proxtoolbox/experiments/phase/JWST_Experiment.py", line 150, in

loadData k_j[ii,jj]= np.random.poisson(k_j[ii,jj])*snr #use built in numpy possion instead of

utils.PoissonRan(k[ii,jj,i])*snr File "mtrand.pyx", line 3556, in numpy.random.mtrand.RandomState.poisson File "_common.pyx", line 815, in numpy.random._common.disc File "_common.pyx", line 379, in numpy.random._common.check_constraint

ValueError: lam value too large

Edited Jul 08, 2020 by Russell Luke
Assignee
Assign to
Time tracking