{"action":"created","issue":{"url":"https://api.github.com/repos/radio-astro-tools/spectral-cube/issues/234","labels_url":"https://api.github.com/repos/radio-astro-tools/spectral-cube/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/radio-astro-tools/spectral-cube/issues/234/comments","events_url":"https://api.github.com/repos/radio-astro-tools/spectral-cube/issues/234/events","html_url":"https://github.com/radio-astro-tools/spectral-cube/pull/234","id":100602909,"number":234,"title":"Set WCS each time a new WCS is created","user":{"login":"keflavich","id":143715,"avatar_url":"https://avatars.githubusercontent.com/u/143715?v=3","gravatar_id":"","url":"https://api.github.com/users/keflavich","html_url":"https://github.com/keflavich","followers_url":"https://api.github.com/users/keflavich/followers","following_url":"https://api.github.com/users/keflavich/following{/other_user}","gists_url":"https://api.github.com/users/keflavich/gists{/gist_id}","starred_url":"https://api.github.com/users/keflavich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keflavich/subscriptions","organizations_url":"https://api.github.com/users/keflavich/orgs","repos_url":"https://api.github.com/users/keflavich/repos","events_url":"https://api.github.com/users/keflavich/events{/privacy}","received_events_url":"https://api.github.com/users/keflavich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-12T18:14:55Z","updated_at":"2015-08-13T07:56:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/radio-astro-tools/spectral-cube/pulls/234","html_url":"https://github.com/radio-astro-tools/spectral-cube/pull/234","diff_url":"https://github.com/radio-astro-tools/spectral-cube/pull/234.diff","patch_url":"https://github.com/radio-astro-tools/spectral-cube/pull/234.patch"},"body":"set the WCS in masks when they are created to avoid mismatches between the\ncube and mask WCSes.  Otherwise, mask wcs != cube wcs errors can arise"},"comment":{"url":"https://api.github.com/repos/radio-astro-tools/spectral-cube/issues/comments/130568598","html_url":"https://github.com/radio-astro-tools/spectral-cube/pull/234#issuecomment-130568598","issue_url":"https://api.github.com/repos/radio-astro-tools/spectral-cube/issues/234","id":130568598,"user":{"login":"keflavich","id":143715,"avatar_url":"https://avatars.githubusercontent.com/u/143715?v=3","gravatar_id":"","url":"https://api.github.com/users/keflavich","html_url":"https://github.com/keflavich","followers_url":"https://api.github.com/users/keflavich/followers","following_url":"https://api.github.com/users/keflavich/following{/other_user}","gists_url":"https://api.github.com/users/keflavich/gists{/gist_id}","starred_url":"https://api.github.com/users/keflavich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keflavich/subscriptions","organizations_url":"https://api.github.com/users/keflavich/orgs","repos_url":"https://api.github.com/users/keflavich/repos","events_url":"https://api.github.com/users/keflavich/events{/privacy}","received_events_url":"https://api.github.com/users/keflavich/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T07:56:46Z","updated_at":"2015-08-13T07:56:46Z","body":"OK, my 'regression test' is this:\r\n```\r\nfrom paths import dpath\r\nfrom astropy import units as u\r\nfrom spectral_cube import SpectralCube\r\n\r\ncube = SpectralCube.read(dpath('W51Ku_BD_h2co_v30to90_briggs0_contsub.image.fits')).with_spectral_unit(u.km/u.s, velocity_convention='radio')\r\ncube[60]\r\n```\r\nwhich, without `set_wcs`, reproducibly results in an abort trap.\r\n\r\nRunning with gdb, I get a *lot* of unrelated warnings, then this:\r\n\r\n```\r\ngdb -ex r --args python mwe.py\r\n\r\nwarning: Could not open OSO archive file \"-------src-dir--------/scipy-0.16.0/build/temp.macosx-10.5-x86_64-2.7/libodepack.a\"\r\nwarning: Could not open OSO archive file \"-------src-dir--------/scipy-0.16.0/libgfortran.a\"\r\nwarning: `-------src-dir--------/scipy-0.16.0/build/temp.macosx-10.5-x86_64-2.7/scipy/ndimage/src/_ni_label.o': can't open to read symbols: No such file or directory.\r\n\r\nProgram received signal SIGABRT, Aborted.\r\n0x00007fff845fc866 in __pthread_kill () from /usr/lib/system/libsystem_kernel.dylib\r\n\r\n(gdb) bt\r\n#0  0x00007fff845fc866 in __pthread_kill () from /usr/lib/system/libsystem_kernel.dylib\r\n#1  0x00007fff853d435c in asn1_TicketFlags_table_units () from /usr/lib/system/libsystem_pthread.dylib\r\n#2  0x0000000000000000 in ?? ()\r\n```"}}