{"action":"closed","issue":{"url":"https://api.github.com/repos/dkirkby/speclite/issues/14","repository_url":"https://api.github.com/repos/dkirkby/speclite","labels_url":"https://api.github.com/repos/dkirkby/speclite/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/dkirkby/speclite/issues/14/comments","events_url":"https://api.github.com/repos/dkirkby/speclite/issues/14/events","html_url":"https://github.com/dkirkby/speclite/issues/14","id":133553356,"number":14,"title":"\"Wavelength values must be strictly increasing.\" error for monotonically increasing array","user":{"login":"moustakas","id":1431820,"avatar_url":"https://avatars.githubusercontent.com/u/1431820?v=3","gravatar_id":"","url":"https://api.github.com/users/moustakas","html_url":"https://github.com/moustakas","followers_url":"https://api.github.com/users/moustakas/followers","following_url":"https://api.github.com/users/moustakas/following{/other_user}","gists_url":"https://api.github.com/users/moustakas/gists{/gist_id}","starred_url":"https://api.github.com/users/moustakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moustakas/subscriptions","organizations_url":"https://api.github.com/users/moustakas/orgs","repos_url":"https://api.github.com/users/moustakas/repos","events_url":"https://api.github.com/users/moustakas/events{/privacy}","received_events_url":"https://api.github.com/users/moustakas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-14T16:37:28Z","updated_at":"2016-02-16T05:58:40Z","closed_at":"2016-02-16T05:58:40Z","body":"I've double- and triple-checked that the wavelength array for the ELG basis spectra is monotonically increasing, and yet speclite.filters is still throwing an error:\r\n```\r\nfrom speclite import filters\r\nfrom desisim.io import read_basis_templates\r\nflux, wave, meta = read_basis_templates(objtype='ELG')\r\nrfilt = filters.load_filters('decam2014-r')\r\nrfilt.get_ab_maggies(flux[0,:], wave)\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-9-a86f52a94e30> in <module>()\r\n----> 1 rfilt.get_ab_maggies(flux[0,:], wave)\r\n\r\n/usr/local/lib/python2.7/site-packages/speclite-0.4.dev342-py2.7.egg/speclite/filters.pyc in get_ab_maggies(self, spectrum, wavelength, axis, mask_invalid)\r\n   1455         \"\"\"\r\n   1456         return self._get_table(spectrum, wavelength, axis, mask_invalid,\r\n-> 1457                                method=FilterResponse.get_ab_maggies)\r\n   1458 \r\n   1459 \r\n\r\n/usr/local/lib/python2.7/site-packages/speclite-0.4.dev342-py2.7.egg/speclite/filters.pyc in _get_table(self, spectrum, wavelength, axis, mask_invalid, method)\r\n   1408             except ValueError as e:\r\n   1409                 if not mask_invalid:\r\n-> 1410                     raise e\r\n   1411                 # Create a missing column the first time we need it.\r\n   1412                 if missing_column is None:\r\n\r\nValueError: Wavelength values must be strictly increasing.\r\n```"}}