{"action":"opened","issue":{"url":"https://api.github.com/repos/annehutter/grid-model/issues/6","repository_url":"https://api.github.com/repos/annehutter/grid-model","labels_url":"https://api.github.com/repos/annehutter/grid-model/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/annehutter/grid-model/issues/6/comments","events_url":"https://api.github.com/repos/annehutter/grid-model/issues/6/events","html_url":"https://github.com/annehutter/grid-model/issues/6","id":300512732,"number":6,"title":"redshift_list is a double but has integer comparison","user":{"login":"jacobseiler","id":17869663,"avatar_url":"https://avatars2.githubusercontent.com/u/17869663?v=4","gravatar_id":"","url":"https://api.github.com/users/jacobseiler","html_url":"https://github.com/jacobseiler","followers_url":"https://api.github.com/users/jacobseiler/followers","following_url":"https://api.github.com/users/jacobseiler/following{/other_user}","gists_url":"https://api.github.com/users/jacobseiler/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobseiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobseiler/subscriptions","organizations_url":"https://api.github.com/users/jacobseiler/orgs","repos_url":"https://api.github.com/users/jacobseiler/repos","events_url":"https://api.github.com/users/jacobseiler/events{/privacy}","received_events_url":"https://api.github.com/users/jacobseiler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-27T06:51:33Z","updated_at":"2018-02-27T06:51:33Z","closed_at":null,"author_association":"NONE","body":"In ```main.c``` we initialize ```double *redshift_list = NULL;``` and then read values in ```input_redshifts.c```.\r\n\r\nHowever then in ```cifog.c``` we attempt to make an integer comparison ```if((redshift_list[2*cycle+1] == 1) || (cycle == 0)) snap++;```. \r\n\r\nI saved my redshift file using ```np.savetxt()```  which saved as 1.000000 instead of 1 resulting in snap not being incremented properly. "}}
{"actor":{"display_login":"jacobseiler"}}