{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/7033","repository_url":"https://api.github.com/repos/spyder-ide/spyder","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/7033/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/7033/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/7033/events","html_url":"https://github.com/spyder-ide/spyder/issues/7033","id":318590107,"node_id":"MDU6SXNzdWUzMTg1OTAxMDc=","number":7033,"title":"LombScargle not fully working","user":{"login":"nadiyaikon","id":38800688,"node_id":"MDQ6VXNlcjM4ODAwNjg4","avatar_url":"https://avatars3.githubusercontent.com/u/38800688?v=4","gravatar_id":"","url":"https://api.github.com/users/nadiyaikon","html_url":"https://github.com/nadiyaikon","followers_url":"https://api.github.com/users/nadiyaikon/followers","following_url":"https://api.github.com/users/nadiyaikon/following{/other_user}","gists_url":"https://api.github.com/users/nadiyaikon/gists{/gist_id}","starred_url":"https://api.github.com/users/nadiyaikon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadiyaikon/subscriptions","organizations_url":"https://api.github.com/users/nadiyaikon/orgs","repos_url":"https://api.github.com/users/nadiyaikon/repos","events_url":"https://api.github.com/users/nadiyaikon/events{/privacy}","received_events_url":"https://api.github.com/users/nadiyaikon/received_events","type":"User","site_admin":false},"labels":[{"id":517491976,"node_id":"MDU6TGFiZWw1MTc0OTE5NzY=","url":"https://api.github.com/repos/spyder-ide/spyder/labels/resolution:Invalid","name":"resolution:Invalid","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-28T01:54:08Z","updated_at":"2018-07-17T08:54:06Z","closed_at":"2018-04-28T20:00:44Z","author_association":"NONE","body":"## Description\r\n\r\n**What steps will reproduce the problem?**\r\n\r\n1. LS = LombScargle(t, y, normalization='psd')\r\n2. frequency, power = LS.autopower()\r\n3. print (LS.false_alarm_probability(power.max()))\r\n\r\n\r\n**What is the expected output? What do you see instead?**\r\nOne number corresponding to the probability of the peak being significant should be printed. However, this is what I get instead:\r\n__init__() got an unexpected keyword argument 'normalization'\r\n\r\nAnd if I remove the normalization part from within the brackets, then this is what I get:\r\n'LombScargle' object has no attribute 'false_alarm_probability'\r\n\r\n\r\n**Please provide any additional information below**\r\nI have astropy 3.0.2 installed and if I go to the core.py (in the lombscargle folder), the **def** _false_alarm_probability_ IS inside the **class** _LombScargle_, as well as the _normalization_ variable. Thus, I am really not sure why it isn't recognised when I run the code.\r\n\r\n\r\n## Version and main components\r\n\r\n* Spyder Version: 3.2.6 \r\n* Python Version: 3.6.4\r\n* Qt Versions: 5.6.2, PyQt5 5.6 on Windows\r\n\r\n## Dependencies\r\n```\r\nIPython >=4.0    :  6.2.1 (OK)\r\ncython >=0.21    :  0.27.3 (OK)\r\njedi >=0.9.0     :  0.11.1 (OK)\r\nnbconvert >=4.0  :  5.3.1 (OK)\r\nnumpy >=1.7      :  1.14.0 (OK)\r\npandas >=0.13.1  :  0.22.0 (OK)\r\npycodestyle >=2.3:  2.3.1 (OK)\r\npyflakes >=0.6.0 :  1.6.0 (OK)\r\npygments >=2.0   :  2.2.0 (OK)\r\npylint >=0.25    :  1.8.2 (OK)\r\nqtconsole >=4.2.0:  4.3.1 (OK)\r\nrope >=0.9.4     :  0.10.7 (OK)\r\nsphinx >=0.6.6   :  1.6.6 (OK)\r\nsympy >=0.7.3    :  1.1.1 (OK)\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/405509806","html_url":"https://github.com/spyder-ide/spyder/issues/7033#issuecomment-405509806","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/7033","id":405509806,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTUwOTgwNg==","user":{"login":"acamargofb","id":8261606,"node_id":"MDQ6VXNlcjgyNjE2MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/8261606?v=4","gravatar_id":"","url":"https://api.github.com/users/acamargofb","html_url":"https://github.com/acamargofb","followers_url":"https://api.github.com/users/acamargofb/followers","following_url":"https://api.github.com/users/acamargofb/following{/other_user}","gists_url":"https://api.github.com/users/acamargofb/gists{/gist_id}","starred_url":"https://api.github.com/users/acamargofb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acamargofb/subscriptions","organizations_url":"https://api.github.com/users/acamargofb/orgs","repos_url":"https://api.github.com/users/acamargofb/repos","events_url":"https://api.github.com/users/acamargofb/events{/privacy}","received_events_url":"https://api.github.com/users/acamargofb/received_events","type":"User","site_admin":false},"created_at":"2018-07-17T08:54:06Z","updated_at":"2018-07-17T08:54:06Z","author_association":"NONE","body":"I am getting kind of the same error following  http://docs.astropy.org/en/stable/stats/lombscargle.html#  the error that I got is:\r\nls.false_alarm_probability(power.max())\r\nAttributeError: 'LombScargle' object has no attribute 'false_alarm_probability'\r\n\r\nDoes someone faced the same problem? \r\n\r\nThanks a lot in advance,\r\n\r\nAldo"}}
{"actor":{"display_login":"acamargofb"}}