Skip to content

Commit 45f82d1

Browse files
committed
Fix enum names for OutputStates.VOLTAGE and OutputStates.CURRENT
1 parent ff7713d commit 45f82d1

File tree

5 files changed

+21
-18
lines changed

5 files changed

+21
-18
lines changed

docs/nidcpower/class.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2480,13 +2480,13 @@ query_output_state
24802480
Specifies the output state of the channel that is being queried.
24812481
**Defined Values**:
24822482

2483-
+-----------------------------------------------------+--------------------------------------------------------------------+
2484-
| :py:data:`~nidcpower.OutputStates.CONSTANT_VOLTAGE` | The channel maintains a constant voltage by adjusting the current. |
2485-
+-----------------------------------------------------+--------------------------------------------------------------------+
2486-
| :py:data:`~nidcpower.OutputStates.CONSTANT_CURRENT` | The channel maintains a constant current by adjusting the voltage. |
2487-
+-----------------------------------------------------+--------------------------------------------------------------------+
2488-
| :py:data:`~nidcpower.OutputStates.INHIBITED` | The channel is in the inhibited state. |
2489-
+-----------------------------------------------------+--------------------------------------------------------------------+
2483+
+----------------------------------------------+--------------------------------------------------------------------+
2484+
| :py:data:`~nidcpower.OutputStates.VOLTAGE` | The channel maintains a constant voltage by adjusting the current. |
2485+
+----------------------------------------------+--------------------------------------------------------------------+
2486+
| :py:data:`~nidcpower.OutputStates.CURRENT` | The channel maintains a constant current by adjusting the voltage. |
2487+
+----------------------------------------------+--------------------------------------------------------------------+
2488+
| :py:data:`~nidcpower.OutputStates.INHIBITED` | The channel is in the inhibited state. |
2489+
+----------------------------------------------+--------------------------------------------------------------------+
24902490

24912491

24922492
:type output_state: :py:data:`nidcpower.OutputStates`

docs/nidcpower/enums.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ OutputStates
11661166

11671167
.. py:class:: OutputStates
11681168
1169-
.. py:attribute:: OutputStates.CONSTANT_VOLTAGE
1169+
.. py:attribute:: OutputStates.VOLTAGE
11701170
11711171
11721172
@@ -1176,7 +1176,7 @@ OutputStates
11761176

11771177

11781178

1179-
.. py:attribute:: OutputStates.CONSTANT_CURRENT
1179+
.. py:attribute:: OutputStates.CURRENT
11801180
11811181
11821182

generated/nidcpower/nidcpower/enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,11 +512,11 @@ class OutputFunction(Enum):
512512

513513

514514
class OutputStates(Enum):
515-
CONSTANT_VOLTAGE = 0
515+
VOLTAGE = 0
516516
r'''
517517
The channel maintains a constant voltage by adjusting the current.
518518
'''
519-
CONSTANT_CURRENT = 1
519+
CURRENT = 1
520520
r'''
521521
The channel maintains a constant current by adjusting the voltage.
522522
'''

generated/nidcpower/nidcpower/session.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6874,13 +6874,13 @@ def query_output_state(self, output_state):
68746874
output_state (enums.OutputStates): Specifies the output state of the channel that is being queried.
68756875
**Defined Values**:
68766876
6877-
+-------------------------------+--------------------------------------------------------------------+
6878-
| OutputStates.CONSTANT_VOLTAGE | The channel maintains a constant voltage by adjusting the current. |
6879-
+-------------------------------+--------------------------------------------------------------------+
6880-
| OutputStates.CONSTANT_CURRENT | The channel maintains a constant current by adjusting the voltage. |
6881-
+-------------------------------+--------------------------------------------------------------------+
6882-
| OutputStates.INHIBITED | The channel is in the inhibited state. |
6883-
+-------------------------------+--------------------------------------------------------------------+
6877+
+------------------------+--------------------------------------------------------------------+
6878+
| OutputStates.VOLTAGE | The channel maintains a constant voltage by adjusting the current. |
6879+
+------------------------+--------------------------------------------------------------------+
6880+
| OutputStates.CURRENT | The channel maintains a constant current by adjusting the voltage. |
6881+
+------------------------+--------------------------------------------------------------------+
6882+
| OutputStates.INHIBITED | The channel is in the inhibited state. |
6883+
+------------------------+--------------------------------------------------------------------+
68846884
68856885
68866886
Returns:

src/nidcpower/metadata/enums.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,20 +986,23 @@
986986
'description': 'The channel maintains a constant voltage by adjusting the current.'
987987
},
988988
'name': 'NIDCPOWER_VAL_OUTPUT_CONSTANT_VOLTAGE',
989+
'python_name': 'NIDCPOWER_VAL_OUTPUT_VOLTAGE',
989990
'value': 0
990991
},
991992
{
992993
'documentation': {
993994
'description': 'The channel maintains a constant current by adjusting the voltage.'
994995
},
995996
'name': 'NIDCPOWER_VAL_OUTPUT_CONSTANT_CURRENT',
997+
'python_name': 'NIDCPOWER_VAL_OUTPUT_CURRENT',
996998
'value': 1
997999
},
9981000
{
9991001
'documentation': {
10001002
'description': 'The channel is in the inhibited state.'
10011003
},
10021004
'name': 'NIDCPOWER_VAL_OUTPUT_INHIBITED',
1005+
'python_name': 'NIDCPOWER_VAL_OUTPUT_INHIBITED',
10031006
'value': 1163
10041007
}
10051008
]

0 commit comments

Comments
 (0)