Skip to content

Commit

Permalink
example: update the in_compliance value in the right way
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaseelan-james committed Aug 14, 2024
1 parent ad51e4d commit 767173c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/nidcpower_source_dc_voltage/measurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ def measure(
in_compliance = session_info.session.channels[
channel_mapping.channel
].query_in_compliance()
measurement._replace(in_compliance=in_compliance)

measurements.extend(session_measurements)
measurements.append(measurement._replace(in_compliance=in_compliance))

# Reset the channels to a known state
for session_info in session_infos:
Expand Down

0 comments on commit 767173c

Please sign in to comment.