{"action":"created","issue":{"url":"https://api.github.com/repos/NSLS-II/ophyd/issues/254","labels_url":"https://api.github.com/repos/NSLS-II/ophyd/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/NSLS-II/ophyd/issues/254/comments","events_url":"https://api.github.com/repos/NSLS-II/ophyd/issues/254/events","html_url":"https://github.com/NSLS-II/ophyd/issues/254","id":130419857,"number":254,"title":"Hardcoded \"cam1\" at ophyd detectors ","user":{"login":"hhslepicka","id":8185425,"avatar_url":"https://avatars.githubusercontent.com/u/8185425?v=3","gravatar_id":"","url":"https://api.github.com/users/hhslepicka","html_url":"https://github.com/hhslepicka","followers_url":"https://api.github.com/users/hhslepicka/followers","following_url":"https://api.github.com/users/hhslepicka/following{/other_user}","gists_url":"https://api.github.com/users/hhslepicka/gists{/gist_id}","starred_url":"https://api.github.com/users/hhslepicka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhslepicka/subscriptions","organizations_url":"https://api.github.com/users/hhslepicka/orgs","repos_url":"https://api.github.com/users/hhslepicka/repos","events_url":"https://api.github.com/users/hhslepicka/events{/privacy}","received_events_url":"https://api.github.com/users/hhslepicka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-01T17:04:15Z","updated_at":"2016-02-01T17:07:20Z","closed_at":null,"body":"By default the code assumes that everyone uses \"cam1\" in their area detector configuration. At LIX and some other beam lines that I checked the value for this parameter is empty. Is it possible to make it configurable in some way?\r\n\r\nHere is the point where \"cam1\" is hardcoded.\r\nhttps://github.com/NSLS-II/ophyd/blob/adacf52896c84c52e77757bc83e55771edecf2e4/ophyd/areadetector/detectors.py#L147\r\n\r\nIn order to get something running I did the following MacGyver:\r\n```python\r\nclass LixProsilicaDetector(DetectorBase):\r\n    _html_docs = ['prosilicaDoc.html']\r\n    cam = Cpt(cam.ProsilicaDetectorCam, '')\r\n```\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/NSLS-II/ophyd/issues/comments/178071856","html_url":"https://github.com/NSLS-II/ophyd/issues/254#issuecomment-178071856","issue_url":"https://api.github.com/repos/NSLS-II/ophyd/issues/254","id":178071856,"user":{"login":"klauer","id":5139267,"avatar_url":"https://avatars.githubusercontent.com/u/5139267?v=3","gravatar_id":"","url":"https://api.github.com/users/klauer","html_url":"https://github.com/klauer","followers_url":"https://api.github.com/users/klauer/followers","following_url":"https://api.github.com/users/klauer/following{/other_user}","gists_url":"https://api.github.com/users/klauer/gists{/gist_id}","starred_url":"https://api.github.com/users/klauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klauer/subscriptions","organizations_url":"https://api.github.com/users/klauer/orgs","repos_url":"https://api.github.com/users/klauer/repos","events_url":"https://api.github.com/users/klauer/events{/privacy}","received_events_url":"https://api.github.com/users/klauer/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T17:07:20Z","updated_at":"2016-02-01T17:07:20Z","body":"You can subclass and override (shadow) `ProsilicaDetector`'s `cam` component with the appropriate suffix. Implementing it as you describe is just fine, too."}}