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

ENH: ArchivePlotCurveItem Connection Status #1108

Merged
merged 9 commits into from
Sep 18, 2024

Conversation

zdomke
Copy link
Contributor

@zdomke zdomke commented Aug 26, 2024

Adds connection_state_signal to the Archiver Plugin and makes use of it in the ArchivePlotCurveItem. More details given below:

  1. Archiver Plugin will emit to the connection_state_signal when
    a. The Archiver URL doesn't exist ( --> False)
    b. The network request returns an error and/or data that isn't JSON formatted ( --> False)
    c. The network request returns no error and data in JSON format ( --> True)

  2. TimePlotCurveItem change:
    a. Create a channel connection signal that is emitted in connectionStateChanged
    b. In address setter, disconnect channel (if one exists) and connect the new channel

  3. ArchiverPlotCurveItem changes:
    a. Create a channel connection signal that is directly tied to the archive_channel connection signal
    b. In address setter, disconnect archive_channel (if one exists) and connect the new archive_channel
    c. In the address setter, prompt the PyDMArchivePlot to request archive data (needs to be done through the plot to get the time range)

  4. In PyDMArchiveTimePlot, fix an issue with the default timespan not being set properly in updateXAxis

Copy link
Collaborator

@YektaY YektaY left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good to me.

Copy link
Collaborator

@jbellister-slac jbellister-slac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, will be nice to have that connection status be useful for archive plots

pydm/widgets/archiver_time_plot.py Show resolved Hide resolved
pydm/widgets/timeplot.py Show resolved Hide resolved
zdomke added a commit to zdomke/pydm that referenced this pull request Sep 13, 2024
pydm/widgets/archiver_time_plot.py Outdated Show resolved Hide resolved
pydm/widgets/archiver_time_plot.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@jbellister-slac jbellister-slac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, looks good!

@jbellister-slac jbellister-slac merged commit 81d9b6b into slaclab:master Sep 18, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants