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

Add plots #27

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Add plots #27

wants to merge 20 commits into from

Conversation

LukeFiddy
Copy link
Collaborator

adding plot functionality and integrating into cli

Copy link

codecov bot commented Jan 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (ca81c09) to head (bceb41d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #27   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         5    +1     
  Lines           95       157   +62     
=========================================
+ Hits            95       157   +62     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -54,12 +58,76 @@ def calculate_voltages(
)


def calculate_optimal_voltages(file_path: str) -> np.typing.NDArray[np.float64]:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could: use the pathlib library instead of strings to represent paths. Might be overkill, but could simplify the validation and logic you're doing in this file to manipulate strings representing paths. Also gives a nicer function signature eg: def read_bluesky_plan_output(filepath: str): .. vs def read_bluesky_plan_output(filepath: Path): ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added a ticket to do this. will implement once core functionality for the in-lab tests are completed

@@ -54,12 +58,76 @@ def calculate_voltages(
)


def calculate_optimal_voltages(file_path: str) -> np.typing.NDArray[np.float64]:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should: Add docstring

@LukeFiddy
Copy link
Collaborator Author

Must add traces for both vltage calculations before merging. This requires the completion of #31

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