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

dev / add logging to measurement runner __exit__ #1695

Conversation

WilliamHPNielsen
Copy link
Contributor

This PR does what @astafan8 suggested in #1668 😄

Changes proposed in this pull request:

  • Add a logging line to the __exit__ method of the Measurement Runner
  • Also log exceptions, in case there were any

I opted for just stuffing in the traceback, as I think human-readability is probably to be favoured over some structured view of the error chain. We can change or extend this later as needed.

@QCoDeS/core

@WilliamHPNielsen WilliamHPNielsen changed the title Add logging to __exit__ dev / add logging to measurement runner __exit__ Sep 4, 2019
@WilliamHPNielsen WilliamHPNielsen force-pushed the dev/add_logging_to_measurement_end branch from 0c8512d to 7d70326 Compare September 4, 2019 14:33
@codecov
Copy link

codecov bot commented Sep 4, 2019

Codecov Report

Merging #1695 into master will increase coverage by <.01%.
The diff coverage is 57.14%.

@@            Coverage Diff             @@
##           master    #1695      +/-   ##
==========================================
+ Coverage   67.23%   67.23%   +<.01%     
==========================================
  Files         145      145              
  Lines       17939    17946       +7     
==========================================
+ Hits        12061    12066       +5     
- Misses       5878     5880       +2

@codecov
Copy link

codecov bot commented Sep 4, 2019

Codecov Report

Merging #1695 into master will decrease coverage by <.01%.
The diff coverage is 57.14%.

@@            Coverage Diff             @@
##           master    #1695      +/-   ##
==========================================
- Coverage   67.26%   67.25%   -0.01%     
==========================================
  Files         145      145              
  Lines       17939    17946       +7     
==========================================
+ Hits        12066    12070       +4     
- Misses       5873     5876       +3

Copy link
Contributor

@astafan8 astafan8 left a comment

Choose a reason for hiding this comment

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

awesome!

qcodes/dataset/measurements.py Outdated Show resolved Hide resolved
@jenshnielsen jenshnielsen merged commit cf817d5 into microsoft:master Sep 9, 2019
@WilliamHPNielsen WilliamHPNielsen deleted the dev/add_logging_to_measurement_end branch September 9, 2019 11:44
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