{"action":"created","issue":{"url":"https://api.github.com/repos/NSLS-II/wishlist/issues/107","repository_url":"https://api.github.com/repos/NSLS-II/wishlist","labels_url":"https://api.github.com/repos/NSLS-II/wishlist/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/NSLS-II/wishlist/issues/107/comments","events_url":"https://api.github.com/repos/NSLS-II/wishlist/issues/107/events","html_url":"https://github.com/NSLS-II/wishlist/issues/107","id":137935792,"number":107,"title":"Wrong value displayed by bluesky in motor movement when close to end of motion","user":{"login":"cmazzoli","id":11068694,"avatar_url":"https://avatars.githubusercontent.com/u/11068694?v=3","gravatar_id":"","url":"https://api.github.com/users/cmazzoli","html_url":"https://github.com/cmazzoli","followers_url":"https://api.github.com/users/cmazzoli/followers","following_url":"https://api.github.com/users/cmazzoli/following{/other_user}","gists_url":"https://api.github.com/users/cmazzoli/gists{/gist_id}","starred_url":"https://api.github.com/users/cmazzoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmazzoli/subscriptions","organizations_url":"https://api.github.com/users/cmazzoli/orgs","repos_url":"https://api.github.com/users/cmazzoli/repos","events_url":"https://api.github.com/users/cmazzoli/events{/privacy}","received_events_url":"https://api.github.com/users/cmazzoli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NSLS-II/wishlist/labels/CSX","name":"CSX","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-02T17:18:16Z","updated_at":"2016-03-05T15:49:37Z","closed_at":null,"body":"In a macro, I asked for:\r\n\r\nmov(gamma,160) coming from an higher gamma value.\r\nI got:\r\n\r\n[end of previous scan..]\r\n+------------+--------------+\r\n\r\n   gamma              \r\n    164.0811 deg      \r\n\r\n[beginning of following scan..]\r\nTransient Scan ID: \r\n\r\nThe motor is actually at the correct value but I wonder then why the position shown on the screen by bluesky is not the final position reached by the motor before starting the scan.\r\nThis can be confusing for users, who may have doubts on how to check motor positions while a macro (or plan..) is keeping the control interface busy.\r\n"},"comment":{"url":"https://api.github.com/repos/NSLS-II/wishlist/issues/comments/192675545","html_url":"https://github.com/NSLS-II/wishlist/issues/107#issuecomment-192675545","issue_url":"https://api.github.com/repos/NSLS-II/wishlist/issues/107","id":192675545,"user":{"login":"cmazzoli","id":11068694,"avatar_url":"https://avatars.githubusercontent.com/u/11068694?v=3","gravatar_id":"","url":"https://api.github.com/users/cmazzoli","html_url":"https://github.com/cmazzoli","followers_url":"https://api.github.com/users/cmazzoli/followers","following_url":"https://api.github.com/users/cmazzoli/following{/other_user}","gists_url":"https://api.github.com/users/cmazzoli/gists{/gist_id}","starred_url":"https://api.github.com/users/cmazzoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmazzoli/subscriptions","organizations_url":"https://api.github.com/users/cmazzoli/orgs","repos_url":"https://api.github.com/users/cmazzoli/repos","events_url":"https://api.github.com/users/cmazzoli/events{/privacy}","received_events_url":"https://api.github.com/users/cmazzoli/received_events","type":"User","site_admin":false},"created_at":"2016-03-05T15:49:37Z","updated_at":"2016-03-05T15:49:37Z","body":"If I remember right, this is the code\r\n(as xf23id1, ~/Beamline/Macros/fCCD_Fe55.py):\r\n\r\n````\r\n#### Fe55 source through mica window\r\n\r\nRE.md['group']='CSX';\r\nRE.md['project']='fCCD single photon';\r\nRE.md['sample']['type']='External source through mica window';\r\nRE.md['sample']['composition']='Fe55'\r\n\r\n\r\nfccd.acquire_time.put(5)\r\n\r\n\r\n## Dark images\r\nmov(gamma,160)\r\nsleep(2)\r\n\r\nfccd.plugin_num_images.put(120)\r\n\r\nfor kk in arange(0,1):\r\n    ct()\r\n    olog('Fe55 test. Dark image: #{}, {} images @ {:.1f}Hz'.format((db[-1].get('start').get('scan_id')), fccd.plugin_num_images.get(), 1./fccd.acquire_time.get()))\r\n\r\n    \r\n## Light images\r\nmov(gamma,179)\r\nsleep(2)\r\n\r\nfccd.plugin_num_images.put(120)\r\n\r\nfor kk in arange(0,6):\r\n    ct()\r\n    olog('Fe55 test. Light image: #{}, {} images @ {:.1f}Hz'.format((db[-1].get('start').get('scan_id')), fccd.plugin_num_images.get(), 1./fccd.acquire_time.get()))\r\n\r\n\r\n## Dark images\r\nmov(gamma,160)\r\nsleep(2)\r\n\r\nfccd.plugin_num_images.put(120)\r\n\r\nfor kk in arange(0,2):\r\n    ct()\r\n    olog('Fe55 test. Dark image: #{}, {} images @ {:.1f}Hz'.format((db[-1].get('start').get('scan_id')), fccd.plugin_num_images.get(), 1./fccd.acquire_time.get()))\r\n\r\n\r\n\r\nfccd.plugin_num_images.put(100)\r\nsleep(2)\r\n\r\nct()\r\nolog('Fe55 test - noise. Dark image: #{}, {} images @ {:.1f}Hz'.format((db[-1].get('start').get('scan_id')), fccd.plugin_num_images.get(), 1./fccd.acquire_time.get()))\r\n    \r\nfccd.plugin_num_images.put(2000)\r\nsleep(2)\r\n\r\nct()\r\n\r\nolog('Fe55 test - noise. Dark as Light image: #{}, {} images @ {:.1f}Hz'.format((db[-1].get('start').get('scan_id')), fccd.plugin_num_images.get(), 1./fccd.acquire_time.get()))\r\n````"}}