NSLS-II-BMM / profile_collection

BlueSky configuration for NSLS-II beamline 6BM, BMM
https://wiki-nsls2.bnl.gov/beamline6BM/index.php/Main_Page
Other
3 stars 7 forks source link

Ion Chamber Integration #2

Closed MikeHart85 closed 4 years ago

MikeHart85 commented 4 years ago

Currently the only change is using NSLS2_IC instead of EM180 as the port_name.

After testing and discussing with @tacaswell, this seems like the only change required to resolve this error message:

RuntimeError: The asyn ports ['NSLS2_IC'] are used by plugins that ophyd is aware of but the source plugin is not.  Please reconfigure your device to include the source plugin or reconfigure to not use these ports.

After making this change, I was able to stage() the device successfully.

@bruceravel: Since you said you weren't in a hurry to get this fixed, and it's a good opportunity for me to learn about the inner workings of QuadEM/AreaDetector, I'm still digging deeper in the code to understand it better and see if anything else can be improved.

Did you have a wishlist of improvements beyond getting rid of this error? You mentioned users were coming on Friday? Should I maybe bring it back to the beamline today or tomorrow, so we can see if it works and/or if anything else breaks?

MikeHart85 commented 4 years ago

Build failures appear to be due to failing to install Qt dependencies. Not sure what's going on there, but I doubt it's related to this change:

Err:2 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libqt5core5a amd64 5.5.1+dfsg-16ubuntu7.6
  404  Not Found
bruceravel commented 4 years ago

Well, I do feel a little bit silly that it turned out to be that simple. But yay! Well done!

What I would like to do is have you bring it back to the BL tomorrow morning so I can play with it tomorrow. We are supposed to be doing XRD this week, but sadly we had some equipment failures that are still getting repaired. So I would like to take advantage of an unexpected free day to play around with my new toy.

That said, I am very much in favor of you availing yourself of the opportunity to learn more about QuadEM and AreaDetector. So I would like to propose that you take it back on Friday and keep it until the following Thursday, when I might have another chance to play around with it.

Sound good?

MikeHart85 commented 4 years ago

Sounds perfect. And don't feel bad, took me the better part of a day of digging through docs and code to figure it out.

Tom knew right away what was up, but he wrote much of the code involved so I feel like that's an unfair advantage :)

bruceravel commented 4 years ago

Totally unfair advantage!