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

example: use the tuple with the updated "in_compliance" value returned by _replace() #842

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions examples/nidcpower_source_dc_voltage/measurement.py
jayaseelan-james marked this conversation as resolved.
Show resolved Hide resolved
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
Loading