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: Data Insight Tool #88

Merged
merged 8 commits into from
Dec 17, 2024
Merged

ENH: Data Insight Tool #88

merged 8 commits into from
Dec 17, 2024

Conversation

zdomke
Copy link
Collaborator

@zdomke zdomke commented Dec 17, 2024

Created a tool to view and export all data points shown on the plot. As of right now, the method of opening the tool is just a button on the top left of the main display labeled "Data Insight Tool". This should probably be moved somewhere else, but I'm not sure where.

The widget consists of 4 main widgets:

  1. The PV Selection Combobox
    a. Only shows PVs for ArchiverPlotCurveItems (does not work for FormulaCurveItems yet)
  2. Refresh Data Button
    a. Useful for if the range on the plot's x-axis changes. Prompt's data fetching as needed.
  3. Export Data Button
    a. Prompts user to select a file and format to write the data to.
    b. Allows for .csv, .mat, & .json as of right now
  4. TableView
    a. Shows all the data as well as its source (live or archive)
    b. The leftmost column is the datetime in ISO 8601 format. This column is frozen so that it is always shown, regardless of how far right the user scrolls

The widget only shows data for one curve at a time, but users can open multiple instances of this tool to see data for multiple curves in separate windows.

Future development:

  • Add sorting & filtering to TableView
  • Add FormulaCurveItem capabilities
  • Add alarm status for live data once that is collected

@zdomke zdomke merged commit d728683 into slaclab:main Dec 17, 2024
1 of 7 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.

1 participant