{"action":"created","issue":{"url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/30","labels_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/30/comments","events_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/30/events","html_url":"https://github.com/NSLS-II/Bug-Reports/issues/30","id":109503551,"number":30,"title":"a problem of log_pos and wh_pos","user":{"login":"yugangzhang","id":10730521,"avatar_url":"https://avatars.githubusercontent.com/u/10730521?v=3","gravatar_id":"","url":"https://api.github.com/users/yugangzhang","html_url":"https://github.com/yugangzhang","followers_url":"https://api.github.com/users/yugangzhang/followers","following_url":"https://api.github.com/users/yugangzhang/following{/other_user}","gists_url":"https://api.github.com/users/yugangzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/yugangzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yugangzhang/subscriptions","organizations_url":"https://api.github.com/users/yugangzhang/orgs","repos_url":"https://api.github.com/users/yugangzhang/repos","events_url":"https://api.github.com/users/yugangzhang/events{/privacy}","received_events_url":"https://api.github.com/users/yugangzhang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-02T14:37:06Z","updated_at":"2015-10-02T15:17:35Z","closed_at":null,"body":"```\r\nat chx beamline, under collection environment\r\n\r\nProblem 1:  log_pos\r\nan Error with 'olog_client' and it could be related to the configuration of olog\r\n\r\nDetails:\r\n\r\nIn [44]: log_pos\r\n-------> log_pos()\r\n---------------------------------------------------------------------------\r\nKeyError                                  Traceback (most recent call last)\r\n<ipython-input-44-037a44d1ef10> in <module>()\r\n----> 1 log_pos()\r\n\r\n/opt/conda_envs/collection/lib/python3.4/site-packages/ophyd-0.1.1rc1-py3.4.egg/ophyd/commands.py in wrapper(*args, **kwargs)\r\n    57                                             \"{}\".format(n, t))\r\n    58\r\n---> 59             f(*args, **kwargs)\r\n    60         return wrapper\r\n    61     return wrap\r\n\r\n/opt/conda_envs/collection/lib/python3.4/site-packages/ophyd-0.1.1rc1-py3.4.egg/ophyd/commands.py in log_pos(positioners)\r\n   357         positioners = [pos[k] for k in sorted(pos)]\r\n   358     if logbook is None:\r\n--> 359         logbook = session_manager['olog_client']\r\n   360     msg = ''\r\n   361\r\n\r\n/opt/conda_envs/collection/lib/python3.4/site-packages/ophyd-0.1.1rc1-py3.4.egg/ophyd/session/sessionmgr.py in __getitem__(self, key)\r\n   257     def __getitem__(self, key):\r\n   258         '''Grab variables from the IPython namespace'''\r\n--> 259         return self._ipy.user_ns[key]\r\n   260\r\n   261     def __setitem__(self, key, value):\r\n\r\nKeyError: 'olog_client'\r\n\r\n\r\n\r\nProblem 2: wh_pos\r\nOnce there is a disconnected motor, wh_pos only give a Error message and can't give information of all the connected motors.\r\n\r\nDetails:\r\nIn [53]: wh_pos\r\n-------> wh_pos()\r\n\r\n---------------------------------------------------------------------------\r\nDisconnectedError                         Traceback (most recent call last)\r\n<ipython-input-53-85b143a9e523> in <module>()\r\n----> 1 wh_pos()\r\n\r\n/opt/conda_envs/collection/lib/python3.4/site-packages/ophyd-0.1.1rc1-py3.4.egg/ophyd/commands.py in wrapper(*args, **kwargs)\r\n    57                                             \"{}\".format(n, t))\r\n    58 \r\n---> 59             f(*args, **kwargs)\r\n    60         return wrapper\r\n    61     return wrap\r\n\r\n/opt/conda_envs/collection/lib/python3.4/site-packages/ophyd-0.1.1rc1-py3.4.egg/ophyd/commands.py in wh_pos(positioners)\r\n   328         positioners = [pos[k] for k in sorted(pos)]\r\n   329 \r\n--> 330     _print_pos(positioners, file=sys.stdout)\r\n   331 \r\n   332 \r\n\r\n/opt/conda_envs/collection/lib/python3.4/site-packages/ophyd-0.1.1rc1-py3.4.egg/ophyd/commands.py in _print_pos(positioners, file)\r\n   607     for p in positioners:\r\n   608         try:\r\n--> 609             pos.append(p.position)\r\n   610         except TypeError as te:\r\n   611             pos.append(None)\r\n\r\n/opt/conda_envs/collection/lib/python3.4/site-packages/ophyd-0.1.1rc1-py3.4.egg/ophyd/utils/epics_pvs.py in wrapper(self, *args, **kwargs)\r\n   335             return fcn(self, *args, **kwargs)\r\n   336         else:\r\n--> 337             raise DisconnectedError('{} is not connected'.format(self.name))\r\n   338     return wrapper\r\n\r\nDisconnectedError: s1_xc is not connected\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/comments/145058605","html_url":"https://github.com/NSLS-II/Bug-Reports/issues/30#issuecomment-145058605","issue_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/30","id":145058605,"user":{"login":"yugangzhang","id":10730521,"avatar_url":"https://avatars.githubusercontent.com/u/10730521?v=3","gravatar_id":"","url":"https://api.github.com/users/yugangzhang","html_url":"https://github.com/yugangzhang","followers_url":"https://api.github.com/users/yugangzhang/followers","following_url":"https://api.github.com/users/yugangzhang/following{/other_user}","gists_url":"https://api.github.com/users/yugangzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/yugangzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yugangzhang/subscriptions","organizations_url":"https://api.github.com/users/yugangzhang/orgs","repos_url":"https://api.github.com/users/yugangzhang/repos","events_url":"https://api.github.com/users/yugangzhang/events{/privacy}","received_events_url":"https://api.github.com/users/yugangzhang/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T15:17:35Z","updated_at":"2015-10-02T15:17:35Z","body":"```\r\nfor log_pos,\r\nI checked .ipython/profile_collection/ipython_config.py and found that there was no olog line in the file.\r\n```\r\n\r\n"}}