{"action":"created","issue":{"url":"https://api.github.com/repos/GalSim-developers/GalSim/issues/802","repository_url":"https://api.github.com/repos/GalSim-developers/GalSim","labels_url":"https://api.github.com/repos/GalSim-developers/GalSim/issues/802/labels{/name}","comments_url":"https://api.github.com/repos/GalSim-developers/GalSim/issues/802/comments","events_url":"https://api.github.com/repos/GalSim-developers/GalSim/issues/802/events","html_url":"https://github.com/GalSim-developers/GalSim/issues/802","id":178361992,"number":802,"title":"config bug or config documentation confusion","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":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-21T14:23:00Z","updated_at":"2016-09-21T14:55:55Z","closed_at":null,"body":"I have run into a few issues recently while generating some simulations for HSC.  One of them is either a config bug or a problem with the config documentation.\r\n\r\nThe impression I get from the examples/great3/ yaml files and the config wiki is that there are three ways to use a template .yaml file and configure some of the details afterwards.\r\n\r\n-  suck in the entire .yaml file as a template, then change some details, for example as in examples/great3/rgc.yaml where it does stuff like\r\n```\r\ntemplate : cgc.yaml\r\ngal.gal_type : real\r\nimage.noise.whiten : True\r\noutput.dir : real/ground/constant\r\n```\r\nthereby modifying the galaxies from parametric to real, whitening the noise, and changing the output location.\r\n\r\n- suck in parts of the .yaml file as a template.  For example as in cgc_psf.yaml\r\n```\r\npsf:\r\n    template : 'cgc.yaml:psf'\r\n```\r\nand as on [the wiki](https://github.com/GalSim-developers/GalSim/wiki/Config-Documentation#template), \"The template field may appear anywhere in the config file. Wherever it appears, the contents of the other file will be a starting point for that part of the current config dict, but you can replace or add values by specifying new values for some of the fields.\"  So this suggests one could later do something like ```psf.index_key : obj_num``` or some such thing, just as in the first case when you suck in the whole file as a template and modify bits later.\r\n\r\n- Suck in your template and/or specify things in the .yaml file, but then modify bits when you call the galsim executable at the command line.\r\n\r\nThe crux of the problem I identified is that the first and third option work, and the second one does not.  It just quietly ignores later modifications if you have sucked in parts of another .yaml file as a template.\r\n\r\nIs this the intended behavior?  If so, then the config documentation needs some updating.\r\n\r\nOr if it's not the intended behavior, would it be possible to fix the bug and also tag a v1.4.3 so we can used a tagged version for HSC sims?"},"comment":{"url":"https://api.github.com/repos/GalSim-developers/GalSim/issues/comments/248637774","html_url":"https://github.com/GalSim-developers/GalSim/issues/802#issuecomment-248637774","issue_url":"https://api.github.com/repos/GalSim-developers/GalSim/issues/802","id":248637774,"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-09-21T14:55:55Z","updated_at":"2016-09-21T14:55:55Z","body":"What about doing that for the required blocks?"}}
{"actor":{"display_login":"rmandelb"}}