Browse Source

Update the test_sink script

The recent additions to the SinkConfig class broke it, so this commit
makes it work again.
Clara Hobbs 6 years ago
parent
commit
4f82d513a0
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      pdbuddy/tools/test_sink.py

+ 4
- 2
pdbuddy/tools/test_sink.py View File

63
 
63
 
64
     # Define configurations for testing
64
     # Define configurations for testing
65
     cfg_20v = pdbuddy.SinkConfig(status=pdbuddy.SinkStatus.VALID,
65
     cfg_20v = pdbuddy.SinkConfig(status=pdbuddy.SinkStatus.VALID,
66
-            flags=pdbuddy.SinkFlags.NONE, v=20000, i=1000)
66
+            flags=pdbuddy.SinkFlags.NONE, v=20000, vmin=None, vmax=None,
67
+            i=1000, idim=pdbuddy.SinkDimension.CURRENT)
67
     cfg_9v = pdbuddy.SinkConfig(status=pdbuddy.SinkStatus.VALID,
68
     cfg_9v = pdbuddy.SinkConfig(status=pdbuddy.SinkStatus.VALID,
68
-            flags=pdbuddy.SinkFlags.NONE, v=9000, i=1000)
69
+            flags=pdbuddy.SinkFlags.NONE, v=9000, vmin=None, vmax=None, i=1000,
70
+            idim=pdbuddy.SinkDimension.CURRENT)
69
 
71
 
70
     # Run the testing procedure
72
     # Run the testing procedure
71
     with pdbuddy.Sink(args.tty) as sink:
73
     with pdbuddy.Sink(args.tty) as sink:

Loading…
Cancel
Save