Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aps.lifetime not connected #1050

Closed
prjemian opened this issue Jan 22, 2025 · 1 comment · Fixed by #1052
Closed

aps.lifetime not connected #1050

prjemian opened this issue Jan 22, 2025 · 1 comment · Fixed by #1052
Assignees
Milestone

Comments

@prjemian
Copy link
Contributor

In [2]: aps.current.get()
Out[2]: 5.011067232629752

In [3]: aps.read()
DisconnectedError: aps_lifetime is not connected


In [4]: aps.lifetime
Out[4]: EpicsSignalRO(read_pv='S:SRlifeTimeHrsCC', name='aps_lifetime', parent='aps', timestamp=1737587260.3691428, auto_monitor=True, string=False)

Is this PV still available?

@prjemian
Copy link
Contributor Author

With these patches:

from apstools.devices import ApsMachineParametersDevice


class PatchedApsMachineParametersDevice(ApsMachineParametersDevice):
    lifetime = None

and

# Guarneri-style device YAML configuration

# Objects only available at APS

# apstools.devices.ApsMachineParametersDevice:
instrument.devices.aps_device.PatchedApsMachineParametersDevice:
  - name: aps

the device reads with no errors:

In [2]: aps.read()
Out[2]: 
OrderedDict([('aps_current',
              {'value': 4.48870120416729, 'timestamp': 1737588664.66941}),
             ('aps_aps_cycle',
              {'value': '2025-1', 'timestamp': 1737588656.134683}),
             ('aps_machine_status',
              {'value': 'MAINTENANCE', 'timestamp': 631152000.0}),
             ('aps_operating_mode',
              {'value': 'Stored Beam', 'timestamp': 1737585231.161558}),
             ('aps_shutter_status', {'value': '0', 'timestamp': 631152000.0}),
             ('aps_shutters_open',
              {'value': 0.0, 'timestamp': 1737070120.517166}),
             ('aps_fill_number',
              {'value': 1.0, 'timestamp': 1737064981.489496}),
             ('aps_orbit_correction',
              {'value': 0.0, 'timestamp': 631152000.0}),
             ('aps_operator_messages_operators',
              {'value': 'Hotham, Sas-Pawlik, Lawson',
               'timestamp': 1737463727.077164}),
             ('aps_operator_messages_floor_coordinator',
              {'value': '', 'timestamp': 1736254955.609851}),
             ('aps_operator_messages_fill_pattern',
              {'value': '', 'timestamp': 631152000.0}),
             ('aps_operator_messages_last_problem_message',
              {'value': '', 'timestamp': 631152000.0}),
             ('aps_operator_messages_last_trip_message',
              {'value': '', 'timestamp': 631152000.0}),
             ('aps_operator_messages_message6',
              {'value': '', 'timestamp': 631152000.0}),
             ('aps_operator_messages_message7',
              {'value': '', 'timestamp': 631152000.0}),
             ('aps_operator_messages_message8',
              {'value': '', 'timestamp': 631152000.0})])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant