{"action":"opened","issue":{"url":"https://api.github.com/repos/nipy/nipype/issues/1578","repository_url":"https://api.github.com/repos/nipy/nipype","labels_url":"https://api.github.com/repos/nipy/nipype/issues/1578/labels{/name}","comments_url":"https://api.github.com/repos/nipy/nipype/issues/1578/comments","events_url":"https://api.github.com/repos/nipy/nipype/issues/1578/events","html_url":"https://github.com/nipy/nipype/issues/1578","id":171038006,"number":1578,"title":"Convenient load of settings from JSON file at interface creation","user":{"login":"oesteban","id":598470,"avatar_url":"https://avatars.githubusercontent.com/u/598470?v=3","gravatar_id":"","url":"https://api.github.com/users/oesteban","html_url":"https://github.com/oesteban","followers_url":"https://api.github.com/users/oesteban/followers","following_url":"https://api.github.com/users/oesteban/following{/other_user}","gists_url":"https://api.github.com/users/oesteban/gists{/gist_id}","starred_url":"https://api.github.com/users/oesteban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oesteban/subscriptions","organizations_url":"https://api.github.com/users/oesteban/orgs","repos_url":"https://api.github.com/users/oesteban/repos","events_url":"https://api.github.com/users/oesteban/events{/privacy}","received_events_url":"https://api.github.com/users/oesteban/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nipy/nipype/labels/enhancement","name":"enhancement","color":"00ff09"}],"state":"open","locked":false,"assignee":{"login":"oesteban","id":598470,"avatar_url":"https://avatars.githubusercontent.com/u/598470?v=3","gravatar_id":"","url":"https://api.github.com/users/oesteban","html_url":"https://github.com/oesteban","followers_url":"https://api.github.com/users/oesteban/followers","following_url":"https://api.github.com/users/oesteban/following{/other_user}","gists_url":"https://api.github.com/users/oesteban/gists{/gist_id}","starred_url":"https://api.github.com/users/oesteban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oesteban/subscriptions","organizations_url":"https://api.github.com/users/oesteban/orgs","repos_url":"https://api.github.com/users/oesteban/repos","events_url":"https://api.github.com/users/oesteban/events{/privacy}","received_events_url":"https://api.github.com/users/oesteban/received_events","type":"User","site_admin":false},"assignees":[{"login":"oesteban","id":598470,"avatar_url":"https://avatars.githubusercontent.com/u/598470?v=3","gravatar_id":"","url":"https://api.github.com/users/oesteban","html_url":"https://github.com/oesteban","followers_url":"https://api.github.com/users/oesteban/followers","following_url":"https://api.github.com/users/oesteban/following{/other_user}","gists_url":"https://api.github.com/users/oesteban/gists{/gist_id}","starred_url":"https://api.github.com/users/oesteban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oesteban/subscriptions","organizations_url":"https://api.github.com/users/oesteban/orgs","repos_url":"https://api.github.com/users/oesteban/repos","events_url":"https://api.github.com/users/oesteban/events{/privacy}","received_events_url":"https://api.github.com/users/oesteban/received_events","type":"User","site_admin":false},{"login":"shoshber","id":1402948,"avatar_url":"https://avatars.githubusercontent.com/u/1402948?v=3","gravatar_id":"","url":"https://api.github.com/users/shoshber","html_url":"https://github.com/shoshber","followers_url":"https://api.github.com/users/shoshber/followers","following_url":"https://api.github.com/users/shoshber/following{/other_user}","gists_url":"https://api.github.com/users/shoshber/gists{/gist_id}","starred_url":"https://api.github.com/users/shoshber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoshber/subscriptions","organizations_url":"https://api.github.com/users/shoshber/orgs","repos_url":"https://api.github.com/users/shoshber/repos","events_url":"https://api.github.com/users/shoshber/events{/privacy}","received_events_url":"https://api.github.com/users/shoshber/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-08-14T02:15:17Z","updated_at":"2016-08-14T02:15:17Z","closed_at":null,"body":"It'd be great if we could create interfaces in this fashion:\r\n\r\n```\r\nreg = ants.Registration(from_file='settings.json')\r\n```\r\n\r\nwhere settings.json contains, for instance, something in this vein:\r\n\r\n```\r\n{\r\n    \"dimension\": 3,\r\n    \"number_of_iterations\": [ [ 50 ], [ 20 ] ],\r\n    \"use_histogram_matching\": [ true, true ],\r\n    \"sampling_percentage\": [ 0.2, 0.2 ],\r\n    \"metric\": [ \"Mattes\", \"Mattes\" ],\r\n    \"winsorize_lower_quantile\": 0.015,\r\n    \"metric_weight\": [ 1.0, 1.0 ],\r\n    \"shrink_factors\": [ [ 4 ], [ 1 ] ],\r\n    \"radius_or_number_of_bins\": [ 64, 64 ],\r\n    \"winsorize_upper_quantile\": 0.998,\r\n    \"sampling_strategy\": [ \"Random\", \"Random\" ],\r\n    \"initial_moving_transform_com\": 0,\r\n    \"convergence_threshold\": [ 1e-07, 1e-08 ],\r\n    \"collapse_output_transforms\": true,\r\n    \"convergence_window_size\": [ 20, 10 ],\r\n    \"sigma_units\": [ \"mm\", \"mm\" ],\r\n    \"transform_parameters\": [ [ 0.5 ], [ 0.1 ] ],\r\n    \"transforms\": [ \"Translation\", \"Rigid\" ],\r\n    \"use_estimate_learning_rate_once\": [ true, true ],\r\n    \"smoothing_sigmas\": [ [ 10.0 ], [ 2.0 ] ]\r\n}\r\n```\r\n\r\nThese parameters would nicely act as defaults for the interface, enabling to test an interface without too much verbosity and modifying one parameter at a time.\r\n\r\nWDYT?"}}
{"actor":{"display_login":"oesteban"}}