{"action":"closed","issue":{"url":"https://api.github.com/repos/cnr-ibf-pa/hbp-bsp-issues/issues/201","repository_url":"https://api.github.com/repos/cnr-ibf-pa/hbp-bsp-issues","labels_url":"https://api.github.com/repos/cnr-ibf-pa/hbp-bsp-issues/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/cnr-ibf-pa/hbp-bsp-issues/issues/201/comments","events_url":"https://api.github.com/repos/cnr-ibf-pa/hbp-bsp-issues/issues/201/events","html_url":"https://github.com/cnr-ibf-pa/hbp-bsp-issues/issues/201","id":299312238,"number":201,"title":"Wrong hostname in NIP-service request ","user":{"login":"alex4200","id":12729291,"avatar_url":"https://avatars3.githubusercontent.com/u/12729291?v=4","gravatar_id":"","url":"https://api.github.com/users/alex4200","html_url":"https://github.com/alex4200","followers_url":"https://api.github.com/users/alex4200/followers","following_url":"https://api.github.com/users/alex4200/following{/other_user}","gists_url":"https://api.github.com/users/alex4200/gists{/gist_id}","starred_url":"https://api.github.com/users/alex4200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex4200/subscriptions","organizations_url":"https://api.github.com/users/alex4200/orgs","repos_url":"https://api.github.com/users/alex4200/repos","events_url":"https://api.github.com/users/alex4200/events{/privacy}","received_events_url":"https://api.github.com/users/alex4200/received_events","type":"User","site_admin":false},"labels":[{"id":703496565,"url":"https://api.github.com/repos/cnr-ibf-pa/hbp-bsp-issues/labels/Type_BUG","name":"Type_BUG","color":"ffca04","default":false},{"id":735379639,"url":"https://api.github.com/repos/cnr-ibf-pa/hbp-bsp-issues/labels/UC_CellPlace_Hippo","name":"UC_CellPlace_Hippo","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":{"login":"jdcourcol","id":5441880,"avatar_url":"https://avatars3.githubusercontent.com/u/5441880?v=4","gravatar_id":"","url":"https://api.github.com/users/jdcourcol","html_url":"https://github.com/jdcourcol","followers_url":"https://api.github.com/users/jdcourcol/followers","following_url":"https://api.github.com/users/jdcourcol/following{/other_user}","gists_url":"https://api.github.com/users/jdcourcol/gists{/gist_id}","starred_url":"https://api.github.com/users/jdcourcol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdcourcol/subscriptions","organizations_url":"https://api.github.com/users/jdcourcol/orgs","repos_url":"https://api.github.com/users/jdcourcol/repos","events_url":"https://api.github.com/users/jdcourcol/events{/privacy}","received_events_url":"https://api.github.com/users/jdcourcol/received_events","type":"User","site_admin":false},"assignees":[{"login":"jdcourcol","id":5441880,"avatar_url":"https://avatars3.githubusercontent.com/u/5441880?v=4","gravatar_id":"","url":"https://api.github.com/users/jdcourcol","html_url":"https://github.com/jdcourcol","followers_url":"https://api.github.com/users/jdcourcol/followers","following_url":"https://api.github.com/users/jdcourcol/following{/other_user}","gists_url":"https://api.github.com/users/jdcourcol/gists{/gist_id}","starred_url":"https://api.github.com/users/jdcourcol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdcourcol/subscriptions","organizations_url":"https://api.github.com/users/jdcourcol/orgs","repos_url":"https://api.github.com/users/jdcourcol/repos","events_url":"https://api.github.com/users/jdcourcol/events{/privacy}","received_events_url":"https://api.github.com/users/jdcourcol/received_events","type":"User","site_admin":false},{"login":"antonelepfl","id":24406041,"avatar_url":"https://avatars2.githubusercontent.com/u/24406041?v=4","gravatar_id":"","url":"https://api.github.com/users/antonelepfl","html_url":"https://github.com/antonelepfl","followers_url":"https://api.github.com/users/antonelepfl/followers","following_url":"https://api.github.com/users/antonelepfl/following{/other_user}","gists_url":"https://api.github.com/users/antonelepfl/gists{/gist_id}","starred_url":"https://api.github.com/users/antonelepfl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonelepfl/subscriptions","organizations_url":"https://api.github.com/users/antonelepfl/orgs","repos_url":"https://api.github.com/users/antonelepfl/repos","events_url":"https://api.github.com/users/antonelepfl/events{/privacy}","received_events_url":"https://api.github.com/users/antonelepfl/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/cnr-ibf-pa/hbp-bsp-issues/milestones/15","html_url":"https://github.com/cnr-ibf-pa/hbp-bsp-issues/milestone/15","labels_url":"https://api.github.com/repos/cnr-ibf-pa/hbp-bsp-issues/milestones/15/labels","id":2971198,"number":15,"title":"Issues for 2018-03","description":"Issues that need be resolved in March 2018.","creator":{"login":"alex4200","id":12729291,"avatar_url":"https://avatars3.githubusercontent.com/u/12729291?v=4","gravatar_id":"","url":"https://api.github.com/users/alex4200","html_url":"https://github.com/alex4200","followers_url":"https://api.github.com/users/alex4200/followers","following_url":"https://api.github.com/users/alex4200/following{/other_user}","gists_url":"https://api.github.com/users/alex4200/gists{/gist_id}","starred_url":"https://api.github.com/users/alex4200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex4200/subscriptions","organizations_url":"https://api.github.com/users/alex4200/orgs","repos_url":"https://api.github.com/users/alex4200/repos","events_url":"https://api.github.com/users/alex4200/events{/privacy}","received_events_url":"https://api.github.com/users/alex4200/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":51,"state":"open","created_at":"2017-12-11T12:17:05Z","updated_at":"2018-03-26T13:51:30Z","due_on":"2018-03-31T07:00:00Z","closed_at":null},"comments":1,"created_at":"2018-02-22T11:10:20Z","updated_at":"2018-03-26T13:51:30Z","closed_at":"2018-03-26T13:51:30Z","author_association":"COLLABORATOR","body":"In the notebook 'Cell Placement Hippocampus' a request is being made which is using a wrong hostname:\r\n\r\n`\r\nhttp://voxels-nip.nexus.apps.bbp.epfl.ch/api/analytics/atlas/download?uri=9B1F97DD-13B8-4FCF-B9B1-59E4EBE4B5D8/brain_regions/brain_region/200.nrrd`\r\n\r\nThis happens in the cell before '_volume_filename_' is defined. The reason for that is that before a correct request is being made as follows:\r\n\r\n`https://nip.humanbrainproject.eu/api/analytics/atlas/releases/9B1F97DD-13B8-4FCF-B9B1-59E4EBE4B5D8/data?brain_region=200`\r\n\r\nwhich in turn returns a json with the 'incorrect' hostname. Suggested solution:\r\n\r\n```\r\nreplace_URL = \"http://voxels-nip.nexus.apps.bbp.epfl.ch:80/api/analytics\"\r\ndata_nrrd_url = [item['url'] for item in data_urls if item['data_type'] == 'brain_regions'][0]\r\nmy_data = requests.get(data_nrrd_url.replace(replace_URL, NIP_URL))\r\n```\r\n\r\n(or any better pythonic solution ...)\r\n\r\n\r\n"}}
{"actor":{"display_login":"alex4200"}}