BCDA-APS / apstools

various tools for use with Bluesky at the APS
https://bcda-aps.github.io/apstools/latest/
Other
16 stars 9 forks source link

aps_cycle_info.yml #971

Closed prjemian closed 2 weeks ago

prjemian commented 2 months ago

Last entry now: https://github.com/BCDA-APS/apstools/blob/ece96632cb919c34c18bc200645189a5632fa576/apstools/devices/aps_cycle_info.yml#L137-L139

prjemian commented 2 weeks ago
AttributeError: module 'apsbss' has no attribute 'api_bss'
prjemian commented 2 weeks ago

The _write_cycle_data() method fails: https://github.com/BCDA-APS/apstools/blob/791afbc8f5047229ea888546151a6ca4f8709366/apstools/devices/aps_cycle.py#L86

Bit rot since apsbss dropped attribute api_bss: https://github.com/BCDA-APS/apstools/blob/791afbc8f5047229ea888546151a6ca4f8709366/apstools/devices/aps_cycle.py#L109

prjemian commented 2 weeks ago

The fix is to call the dm package directly (which was not available at the time _write_cycle_data() was written). But this code will succeed only on workstations where the DM tools are installed. For now, indicate how to get the table data from dm and update the YAML file by hand.

By using dm package directly, it is possible to drop the apsbss package as a requirement for apstools.

There is a pending major revision of apsbss package: https://github.com/BCDA-APS/apsbss/issues/14