{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astroplan/issues/268","repository_url":"https://api.github.com/repos/astropy/astroplan","labels_url":"https://api.github.com/repos/astropy/astroplan/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astroplan/issues/268/comments","events_url":"https://api.github.com/repos/astropy/astroplan/issues/268/events","html_url":"https://github.com/astropy/astroplan/issues/268","id":194391517,"number":268,"title":"attempting to determine rise/set times with single objects leads to error about truth value of array","user":{"login":"aakepley","id":2965853,"avatar_url":"https://avatars.githubusercontent.com/u/2965853?v=3","gravatar_id":"","url":"https://api.github.com/users/aakepley","html_url":"https://github.com/aakepley","followers_url":"https://api.github.com/users/aakepley/followers","following_url":"https://api.github.com/users/aakepley/following{/other_user}","gists_url":"https://api.github.com/users/aakepley/gists{/gist_id}","starred_url":"https://api.github.com/users/aakepley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aakepley/subscriptions","organizations_url":"https://api.github.com/users/aakepley/orgs","repos_url":"https://api.github.com/users/aakepley/repos","events_url":"https://api.github.com/users/aakepley/events{/privacy}","received_events_url":"https://api.github.com/users/aakepley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-08T17:07:40Z","updated_at":"2016-12-08T18:41:08Z","closed_at":"2016-12-08T18:20:37Z","body":"I'm trying to figure out the rise/set times of some objects at the GBT. Following the tutorial online, I've got the following code. However, it fails with \"ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()\" None of the inputs look to be arrays, so how is it triggering this warning?\r\n\r\nI did a clean anaconda install and installed astroplan via conda (conda install -c astropy astroplan).\r\n\r\nI'm running\r\n```\r\nastroplan.__version__\r\nu'0.2'\r\nastropy.__version__\r\nu'1.2.1'\r\n```\r\nand Python 2.7.12 |Anaconda 4.2.0 (x86_64), which is what the clean anaconda install provided.\r\n\r\n```\r\nfrom astroplan import Observer\r\nimport astropy.units as u\r\n\r\nfrom astropy.coordinates import SkyCoord\r\nfrom astroplan import FixedTarget\r\nfrom astropy.time import Time\r\n\r\ngbt = Observer(longitude=(-79,50,23.406)*u.deg, latitude=(38,25,59.236)*u.deg, elevation=807.43*u.m,name='gbt',timezone='US/Eastern')\r\n\r\ngalaxy = FixedTarget.from_name('NGC1068')\r\n\r\ntime = Time('2017-02-01 17:00:00')\r\n\r\ngbt.target_is_up(time, galaxy)\r\n\r\n>>> execfile('rise_set.py')\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"rise_set.py\", line 14, in <module>\r\n    gbt.target_is_up(time, galaxy)\r\n  File \"/Users/amanda/anaconda2/lib/python2.7/site-packages/astropy/utils/decorators.py\", line 636, in target_is_up\r\n    func = make_function_with_signature(func, name=name, **wrapped_args)\r\n  File \"/Users/amanda/anaconda2/lib/python2.7/site-packages/astropy/units/decorators.py\", line 130, in wrapper\r\n    return wrapped_function(*func_args, **func_kwargs)\r\n  File \"/Users/amanda/anaconda2/lib/python2.7/site-packages/astroplan/observer.py\", line 1553, in target_is_up\r\n    observable = bool(altaz.alt > horizon)\r\nValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/astropy/astroplan/issues/comments/265819017","html_url":"https://github.com/astropy/astroplan/issues/268#issuecomment-265819017","issue_url":"https://api.github.com/repos/astropy/astroplan/issues/268","id":265819017,"user":{"login":"bmorris3","id":3497584,"avatar_url":"https://avatars.githubusercontent.com/u/3497584?v=3","gravatar_id":"","url":"https://api.github.com/users/bmorris3","html_url":"https://github.com/bmorris3","followers_url":"https://api.github.com/users/bmorris3/followers","following_url":"https://api.github.com/users/bmorris3/following{/other_user}","gists_url":"https://api.github.com/users/bmorris3/gists{/gist_id}","starred_url":"https://api.github.com/users/bmorris3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmorris3/subscriptions","organizations_url":"https://api.github.com/users/bmorris3/orgs","repos_url":"https://api.github.com/users/bmorris3/repos","events_url":"https://api.github.com/users/bmorris3/events{/privacy}","received_events_url":"https://api.github.com/users/bmorris3/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T18:41:08Z","updated_at":"2016-12-08T18:41:08Z","body":"Ah, I see, sorry that's tricky. Your original lat/lon may be valid inputs to the `Latitude` and `Longitude` objects, but they're not valid `Latitude` and `Longitude` objects themselves."}}
{"actor":{"display_login":"bmorris3"}}