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

Formula Viewer for Archive Viewer #24

Closed
wants to merge 9 commits into from

Conversation

aksharsarvesh
Copy link
Collaborator

Added functionality to traces_table and curves_model to allow for formulas to be graphed. Traces table helps handle formula input, and curves model handles not only Archive Plot curves but also new formulas. Formulas can be functions of PVs or of other functions.

# The first commit's message is:
ENH: Building on the Archive Viewer to include formulas of PVs (or other formulas)

# This is the 2nd commit message:

Have it graphing A over itself

# This is the 3rd commit message:

Fixed issue with default colors

# This is the 4th commit message:

Done with functions

# This is the 5th commit message:

Traces table now populates dialogue with previous formula, curve model handles switching from archive plots to formulas and formulas to formulas, TODO handling formula to archive plots

# This is the 6th commit message:

Formula  -> archive and fixing archive -> formula

# This is the 7th commit message:

temp

# This is the 8th commit message:

Clicking enter to accept formula works

# This is the 9th commit message:

Comments
Copy link
Collaborator

@zdomke zdomke left a comment

Choose a reason for hiding this comment

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

Overall looks pretty good, with some questions & suggestions. It seems like there are some formatting issues, but we can ignore the more minor ones for now. Someday we'll get the pre-commit and formatting finalized.

archive_viewer/mixins/traces_table.py Outdated Show resolved Hide resolved
archive_viewer/mixins/traces_table.py Outdated Show resolved Hide resolved
archive_viewer/mixins/traces_table.py Outdated Show resolved Hide resolved
debug_archive_viewer.bash Outdated Show resolved Hide resolved
archive_viewer/mixins/traces_table.py Show resolved Hide resolved
archive_viewer/table_models/curve_model.py Outdated Show resolved Hide resolved
archive_viewer/table_models/curve_model.py Outdated Show resolved Hide resolved
archive_viewer/table_models/curve_model.py Outdated Show resolved Hide resolved
archive_viewer/table_models/curve_model.py Show resolved Hide resolved
archive_viewer/table_models/curve_model.py Show resolved Hide resolved
archive_viewer/mixins/traces_table.py Outdated Show resolved Hide resolved
archive_viewer/table_models/curve_model.py Outdated Show resolved Hide resolved
archive_viewer/table_models/curve_model.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@zdomke zdomke left a comment

Choose a reason for hiding this comment

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

Looks really good. I had a couple of things I noticed in your new code. A couple of things for you to make sure you do before PR:

  1. Clear out all of your extra print statements
  2. Make sure your comments are easy to read:
    a. Space separating the '#' and the comment ("#Comment" --> "# Comment")
    b. Capitalize the first character in the comment ("# comment" --> "# Comment")

@aksharsarvesh
Copy link
Collaborator Author

@zdomke @YektaY ready for round 3 of reviews

@aksharsarvesh aksharsarvesh marked this pull request as draft August 12, 2024 21:12
@zdomke
Copy link
Collaborator

zdomke commented Aug 29, 2024

@aksharsarvesh This PR is just an outdated duplicate of #31 right? Can we close this PR or should it stay open?

@aksharsarvesh
Copy link
Collaborator Author

Yes this is trash. Just here because I wanted to document previous comments

@zdomke zdomke closed this Aug 29, 2024
@zdomke
Copy link
Collaborator

zdomke commented Aug 29, 2024

Closing PR. It can still be found in the list of closed PRs.

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.

2 participants