-
Notifications
You must be signed in to change notification settings - Fork 0
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 csv reader #13
Add csv reader #13
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 4 +1
Lines 25 62 +37
=========================================
+ Hits 25 62 +37 ☔ View full report in Codecov by Sentry. |
* initial changes to refactor to typer * fix cli test for typer * add mocking for calculate_optimal_voltages function * added unitest to pyproject.toml * added typer to pyproject.toml * remove pytest from pyproject.toml * add typer cli test * add mocking and fixtures to tests * add type ignore flag to pandas object * fix indentation * add stdout assertion to test_app * combine the two tests add assertion for passed arguments rename mock object * add assertion for increment arg * change entrypoint from main to app * add parametrize to test cli with and without output_path arg * remove print statement * fix bug, change underscore to hyphen * fix unbound error on runner result --------- Co-authored-by: Luke Fiddy <[email protected]> Co-authored-by: root <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor changes, otherwise looks great
tests/read_file_test.py
Outdated
with patch("bimorph_mirror_analysis.read_file.pd.read_csv") as mock_read_csv: | ||
mock_read_csv.return_value = raw_data | ||
pivoted, initial_voltages, increment = read_bluesky_plan_output("input_path") | ||
# expected_output = pd.read_csv(output_path) # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could: Delete comment
added script to read csv files
added tests for this script
also pulled together scripts in main to run the program.