{"action":"created","issue":{"url":"https://api.github.com/repos/GalSim-developers/GalSim/issues/773","repository_url":"https://api.github.com/repos/GalSim-developers/GalSim","labels_url":"https://api.github.com/repos/GalSim-developers/GalSim/issues/773/labels{/name}","comments_url":"https://api.github.com/repos/GalSim-developers/GalSim/issues/773/comments","events_url":"https://api.github.com/repos/GalSim-developers/GalSim/issues/773/events","html_url":"https://github.com/GalSim-developers/GalSim/issues/773","id":165661572,"number":773,"title":"make config failures more helpful?","user":{"login":"rmandelb","id":1454906,"avatar_url":"https://avatars.githubusercontent.com/u/1454906?v=3","gravatar_id":"","url":"https://api.github.com/users/rmandelb","html_url":"https://github.com/rmandelb","followers_url":"https://api.github.com/users/rmandelb/followers","following_url":"https://api.github.com/users/rmandelb/following{/other_user}","gists_url":"https://api.github.com/users/rmandelb/gists{/gist_id}","starred_url":"https://api.github.com/users/rmandelb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmandelb/subscriptions","organizations_url":"https://api.github.com/users/rmandelb/orgs","repos_url":"https://api.github.com/users/rmandelb/repos","events_url":"https://api.github.com/users/rmandelb/events{/privacy}","received_events_url":"https://api.github.com/users/rmandelb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-14T21:20:22Z","updated_at":"2016-07-15T00:31:07Z","closed_at":"2016-07-15T00:31:07Z","body":"Hi @rmjarvis - I was wondering about making some failures from the config functionality more helpful.  In particular, I had a case just now here I told it to make PSFs from an input file with a name blah.fits.gz which (oops) didn't exist.  The error message was\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/galsim/config/process.py\", line 840, in MultiProcess\r\n    result = job_func(**kwargs)\r\n  File \"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/galsim/config/output.py\", line 222, in BuildFile\r\n    data = builder.buildImages(output, config, file_num, image_num, obj_num, ignore, logger)\r\n  File \"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/galsim/config/output.py\", line 427, in buildImages\r\n    image = galsim.config.BuildImage(base, image_num, obj_num, logger=logger)\r\n  File \"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/galsim/config/image.py\", line 232, in BuildImage\r\n    image, current_var = builder.buildImage(cfg_image, config, image_num, obj_num, logger)\r\n  File \"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/galsim/config/image_tiled.py\", line 157, in buildImage\r\n    xsize=self.stamp_xsize, ysize=self.stamp_ysize, do_noise=self.do_noise_in_stamps)\r\n  File \"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/galsim/config/stamp.py\", line 104, in BuildStamps\r\n    except_func = except_func)\r\n  File \"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/galsim/config/process.py\", line 840, in MultiProcess\r\n    result = job_func(**kwargs)\r\n  File \"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/galsim/config/stamp.py\", line 317, in BuildStamp\r\n    logger=logger)[0]\r\n  File \"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/galsim/config/gsobject.py\", line 186, in BuildGSObject\r\n    gsobject, safe = _BuildSimple(param, base, ignore, gsparams, logger)\r\n  File \"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/galsim/config/gsobject.py\", line 268, in _BuildSimple\r\n    return init_func(**kwargs), safe\r\n  File \"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/galsim/interpolatedimage.py\", line 270, in __init__\r\n    image = galsim.fits.read(image, hdu=hdu)\r\n  File \"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/galsim/fits.py\", line 792, in read\r\n    hdu_list, fin = _read_file(file_name, dir, file_compress)\r\n  File \"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/galsim/fits.py\", line 203, in __call__\r\n    raise RuntimeError(\"None of the options for gunzipping were successful.\")\r\nRuntimeError: None of the options for gunzipping were successful.\r\n```\r\n\r\nIt seems to me that it would be helpful if it could (a) recognize that the file doesn't exist at all and/or (b) say what file it couldn't unzip.  (If you have a config file that reads in multiple input files, you won't really know what's going on from this.)  What do you think?"},"comment":{"url":"https://api.github.com/repos/GalSim-developers/GalSim/issues/comments/232830367","html_url":"https://github.com/GalSim-developers/GalSim/issues/773#issuecomment-232830367","issue_url":"https://api.github.com/repos/GalSim-developers/GalSim/issues/773","id":232830367,"user":{"login":"rmandelb","id":1454906,"avatar_url":"https://avatars.githubusercontent.com/u/1454906?v=3","gravatar_id":"","url":"https://api.github.com/users/rmandelb","html_url":"https://github.com/rmandelb","followers_url":"https://api.github.com/users/rmandelb/followers","following_url":"https://api.github.com/users/rmandelb/following{/other_user}","gists_url":"https://api.github.com/users/rmandelb/gists{/gist_id}","starred_url":"https://api.github.com/users/rmandelb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmandelb/subscriptions","organizations_url":"https://api.github.com/users/rmandelb/orgs","repos_url":"https://api.github.com/users/rmandelb/repos","events_url":"https://api.github.com/users/rmandelb/events{/privacy}","received_events_url":"https://api.github.com/users/rmandelb/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T00:31:07Z","updated_at":"2016-07-15T00:31:07Z","body":"I'm happy with this.  Thanks!\r\n\r\nClosing #773."}}
{"actor":{"display_login":"rmandelb"}}