You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def test_take_simple_measurement_works(device_info):
with nidmm.Session(device_info['name']) as session:
session.rannge = 50 # Coerces up!
value = session.read(1000) != 0 # Assumes DMM reading is not exactly zero to support non-
Interestingly, this appears to work, but notice the typo when setting the range property! The range property was never set on the session and no error occurred.
Given that:
Our Python bindings are abstractions on top of pre-established APIs
* Fix#96
* "Freeze" the class so no more attributes can be set after __init__ runs
* Need to set current_item in __init__ now that we are freezing the class
* Also showed a hole in unit testing - add test for iteration on modinst session
* Change from '__' to '_
* Update for comments
* Change test name
* Use explicitly non existent property
* Update generated files
Say you have this code:
Interestingly, this appears to work, but notice the typo when setting the range property! The range property was never set on the session and no error occurred.
Given that:
I propose that we disallow inserting any attributes into an instance of Session. How to do that is TBD.
The text was updated successfully, but these errors were encountered: