{"action":"opened","issue":{"url":"https://api.github.com/repos/sherpa/sherpa/issues/290","repository_url":"https://api.github.com/repos/sherpa/sherpa","labels_url":"https://api.github.com/repos/sherpa/sherpa/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/sherpa/sherpa/issues/290/comments","events_url":"https://api.github.com/repos/sherpa/sherpa/issues/290/events","html_url":"https://github.com/sherpa/sherpa/issues/290","id":184964634,"number":290,"title":"do we need to worry about this numpy warning: DeprecationWarning: Non-string object detected for the array ordering. Please pass in 'C', 'F', 'A', or 'K' instead","user":{"login":"DougBurke","id":224638,"avatar_url":"https://avatars.githubusercontent.com/u/224638?v=3","gravatar_id":"","url":"https://api.github.com/users/DougBurke","html_url":"https://github.com/DougBurke","followers_url":"https://api.github.com/users/DougBurke/followers","following_url":"https://api.github.com/users/DougBurke/following{/other_user}","gists_url":"https://api.github.com/users/DougBurke/gists{/gist_id}","starred_url":"https://api.github.com/users/DougBurke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DougBurke/subscriptions","organizations_url":"https://api.github.com/users/DougBurke/orgs","repos_url":"https://api.github.com/users/DougBurke/repos","events_url":"https://api.github.com/users/DougBurke/events{/privacy}","received_events_url":"https://api.github.com/users/DougBurke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-24T21:51:21Z","updated_at":"2016-10-24T21:51:21Z","closed_at":null,"body":"I've noticed this warning occasionally from the test suite. I've narrowed it down to a warning that appears to get displayed if a re-fit is done during an error analysis (the example script I show here starts off at a bad fit) **and** you have explicitly opted to show warnings. I had a quick look and couldn't see where this was happening (so it may be somewhere within NumPy). It doesn't seem to happen with CIAO 4.8 but does with the `master` branch.\r\n\r\nThe problem script can be found at https://gist.github.com/DougBurke/374c20fc8caf0e73f788cd87e3334af1\r\n\r\n```\r\n% python numpy_warning.py \r\nWARNING: failed to import sherpa.plot.pylab_backend; plotting routines will not be available\r\nWARNING: failed to import sherpa.astro.xspec; XSPEC models will not be available\r\nWARNING: New minimum statistic found while computing confidence limits\r\nWARNING: New best-fit parameters:\r\nMethod                = levmar\r\nStatistic             = chi2gehrels\r\nInitial fit statistic = 2.54154\r\nFinal fit statistic   = 1.22883 at function evaluation 68\r\nData points           = 5\r\nDegrees of freedom    = 1\r\nProbability [Q-value] = 0.267635\r\nReduced statistic     = 1.22883\r\nChange in statistic   = 1.31271\r\n   poly.c0        28.966      \r\n   step.xcut      40          \r\n   step.ampl      0.40303     \r\n   bg.c0          9.70601e-10 \r\nstep.ampl lower bound:\t-1.64668\r\nbg.c0 lower bound:\t-1.86448\r\nstep.ampl upper bound:\t1.64668\r\n/home/djburke/miniconda2/envs/sherpa-base/lib/python3.5/site-packages/numpy/core/numeric.py:190: DeprecationWarning: Non-string object detected for the array ordering. Please pass in 'C', 'F', 'A', or 'K' instead\r\n  a = empty(shape, dtype, order)\r\nbg.c0 upper bound:\t1.86448\r\n/home/djburke/miniconda2/envs/sherpa-base/lib/python3.5/site-packages/numpy/core/numeric.py:190: DeprecationWarning: Non-string object detected for the array ordering. Please pass in 'C', 'F', 'A', or 'K' instead\r\n  a = empty(shape, dtype, order)\r\n/home/djburke/miniconda2/envs/sherpa-base/lib/python3.5/site-packages/numpy/core/numeric.py:190: DeprecationWarning: Non-string object detected for the array ordering. Please pass in 'C', 'F', 'A', or 'K' instead\r\n  a = empty(shape, dtype, order)\r\npoly.c0 lower bound:\t-26.2901\r\n/home/djburke/miniconda2/envs/sherpa-base/lib/python3.5/site-packages/numpy/core/numeric.py:190: DeprecationWarning: Non-string object detected for the array ordering. Please pass in 'C', 'F', 'A', or 'K' instead\r\n  a = empty(shape, dtype, order)\r\n/home/djburke/miniconda2/envs/sherpa-base/lib/python3.5/site-packages/numpy/core/numeric.py:190: DeprecationWarning: Non-string object detected for the array ordering. Please pass in 'C', 'F', 'A', or 'K' instead\r\n  a = empty(shape, dtype, order)\r\npoly.c0 upper bound:\t-----\r\nstep.xcut -: WARNING: The confidence level lies within (3.499925e+01, 3.500176e+01)\r\nstep.xcut lower bound:\t-4.99949\r\n/home/djburke/miniconda2/envs/sherpa-base/lib/python3.5/site-packages/numpy/core/numeric.py:190: DeprecationWarning: Non-string object detected for the array ordering. Please pass in 'C', 'F', 'A', or 'K' instead\r\n  a = empty(shape, dtype, order)\r\n/home/djburke/miniconda2/envs/sherpa-base/lib/python3.5/site-packages/numpy/core/numeric.py:190: DeprecationWarning: Non-string object detected for the array ordering. Please pass in 'C', 'F', 'A', or 'K' instead\r\n  a = empty(shape, dtype, order)\r\n/home/djburke/miniconda2/envs/sherpa-base/lib/python3.5/site-packages/numpy/core/numeric.py:190: DeprecationWarning: Non-string object detected for the array ordering. Please pass in 'C', 'F', 'A', or 'K' instead\r\n  a = empty(shape, dtype, order)\r\n/home/djburke/miniconda2/envs/sherpa-base/lib/python3.5/site-packages/numpy/core/numeric.py:190: DeprecationWarning: Non-string object detected for the array ordering. Please pass in 'C', 'F', 'A', or 'K' instead\r\n  a = empty(shape, dtype, order)\r\nstep.xcut +: WARNING: The confidence level lies within (4.199572e+01, 4.200010e+01)\r\nstep.xcut upper bound:\t1.99791\r\nDataset               = 1\r\nConfidence Method     = confidence\r\nIterative Fit Method  = None\r\nFitting Method        = levmar\r\nStatistic             = chi2gehrels\r\nconfidence 1-sigma (68.2689%) bounds:\r\n   Param            Best-Fit  Lower Bound  Upper Bound\r\n   -----            --------  -----------  -----------\r\n   poly.c0            28.966     -26.2901        -----\r\n   step.xcut              40     -4.99949      1.99791\r\n   step.ampl         0.40303     -1.64668      1.64668\r\n   bg.c0         9.70601e-10     -1.86448      1.86448\r\n```"}}
{"actor":{"display_login":"DougBurke"}}