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

Use getattr to get ask/write from instruments #1451

Merged
merged 3 commits into from
Jan 22, 2019

Conversation

spauka
Copy link
Contributor

@spauka spauka commented Jan 21, 2019

This allows us to use InstrumentBase as the base class for virtual instruments

Fixes #1450.

Changes proposed in this pull request:

  • Use getattr to get ask/write from instruments

@jenshnielsen @astafan8

This allows us to use InstrumentBase as the base class for
virtual instruments
@codecov
Copy link

codecov bot commented Jan 21, 2019

Codecov Report

Merging #1451 into master will increase coverage by 0.22%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1451      +/-   ##
==========================================
+ Coverage   73.24%   73.47%   +0.22%     
==========================================
  Files          92       92              
  Lines       10239    10239              
==========================================
+ Hits         7500     7523      +23     
+ Misses       2739     2716      -23

@jenshnielsen
Copy link
Collaborator

Seems reasonable enough. Could you add a test based on the code in #1450

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! but indeed, please add a test for this :)

@spauka
Copy link
Contributor Author

spauka commented Jan 22, 2019

@jenshnielsen @astafan8 added some extra tests on all the changes.

Not sure why the Azure test failed, I don't seem to have access to it...

@jenshnielsen
Copy link
Collaborator

It seems to be a random networking error during the docs build. I have restarted



class MockMetaParabola(Instrument):
class MockMetaParabola(InstrumentBase):
Copy link
Contributor

Choose a reason for hiding this comment

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

well done finding this test suite :)

@jenshnielsen jenshnielsen merged commit 66c5bb1 into microsoft:master Jan 22, 2019
giulioungaretti pushed a commit that referenced this pull request Jan 22, 2019
Merge: e39cdb0 27173c4
Author: Jens Hedegaard Nielsen <jenshnielsen@gmail.com>

    Merge pull request #1451 from spauka/virtual_parameter
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.

None yet

3 participants