{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/8638","repository_url":"https://api.github.com/repos/astropy/astropy","labels_url":"https://api.github.com/repos/astropy/astropy/issues/8638/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/8638/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/8638/events","html_url":"https://github.com/astropy/astropy/issues/8638","id":437291167,"node_id":"MDU6SXNzdWU0MzcyOTExNjc=","number":8638,"title":"Cosmology objects won't set neutrino masses","user":{"login":"dylancromer","id":24197261,"node_id":"MDQ6VXNlcjI0MTk3MjYx","avatar_url":"https://avatars1.githubusercontent.com/u/24197261?v=4","gravatar_id":"","url":"https://api.github.com/users/dylancromer","html_url":"https://github.com/dylancromer","followers_url":"https://api.github.com/users/dylancromer/followers","following_url":"https://api.github.com/users/dylancromer/following{/other_user}","gists_url":"https://api.github.com/users/dylancromer/gists{/gist_id}","starred_url":"https://api.github.com/users/dylancromer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylancromer/subscriptions","organizations_url":"https://api.github.com/users/dylancromer/orgs","repos_url":"https://api.github.com/users/dylancromer/repos","events_url":"https://api.github.com/users/dylancromer/events{/privacy}","received_events_url":"https://api.github.com/users/dylancromer/received_events","type":"User","site_admin":false},"labels":[{"id":113568651,"node_id":"MDU6TGFiZWwxMTM1Njg2NTE=","url":"https://api.github.com/repos/astropy/astropy/labels/Close?","name":"Close?","color":"d93f0b","default":false},{"id":42066031,"node_id":"MDU6TGFiZWw0MjA2NjAzMQ==","url":"https://api.github.com/repos/astropy/astropy/labels/cosmology","name":"cosmology","color":"c7def8","default":false},{"id":783188461,"node_id":"MDU6TGFiZWw3ODMxODg0NjE=","url":"https://api.github.com/repos/astropy/astropy/labels/question","name":"question","color":"006b75","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-04-25T16:29:44Z","updated_at":"2019-04-25T16:42:15Z","closed_at":"2019-04-25T16:40:51Z","author_association":"NONE","body":"In astropy 3.1.2, if I instantiate a cosmology, for example Flatw0waCDM, and try to assign a nonzero neutrino mass, like the following:\r\n\r\n```python\r\nfrom astropy.cosmology import Flatw0waCDM\r\nfrom astropy import units as u\r\ncosmo = Flatw0waCDM(H0=70, Om0=0.3, m_nu=0.02*u.eV)\r\nprint(cosmo.m_nu)\r\n```\r\nit always returns `None`. This seems to happen regardless of which cosmology object I try to use, but I have only tested FlatLambdaCDM, Flatw0waCDM, and w0waCDM.\r\n\r\nEDIT: Fix code typo"},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/486749148","html_url":"https://github.com/astropy/astropy/issues/8638#issuecomment-486749148","issue_url":"https://api.github.com/repos/astropy/astropy/issues/8638","id":486749148,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4Njc0OTE0OA==","user":{"login":"pllim","id":2090236,"node_id":"MDQ6VXNlcjIwOTAyMzY=","avatar_url":"https://avatars2.githubusercontent.com/u/2090236?v=4","gravatar_id":"","url":"https://api.github.com/users/pllim","html_url":"https://github.com/pllim","followers_url":"https://api.github.com/users/pllim/followers","following_url":"https://api.github.com/users/pllim/following{/other_user}","gists_url":"https://api.github.com/users/pllim/gists{/gist_id}","starred_url":"https://api.github.com/users/pllim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pllim/subscriptions","organizations_url":"https://api.github.com/users/pllim/orgs","repos_url":"https://api.github.com/users/pllim/repos","events_url":"https://api.github.com/users/pllim/events{/privacy}","received_events_url":"https://api.github.com/users/pllim/received_events","type":"User","site_admin":false},"created_at":"2019-04-25T16:42:15Z","updated_at":"2019-04-25T16:42:15Z","author_association":"MEMBER","body":"You are welcome. For future reference, you can see the default values by clicking the class name of interest in its API doc at https://astropy.readthedocs.io/en/stable/cosmology/index.html#reference-api"}}
{"actor":{"display_login":"pllim"}}