From 767173c64d1282190aa0c522c42cec3a51df342d Mon Sep 17 00:00:00 2001 From: Jayaseelan James Date: Wed, 14 Aug 2024 20:17:23 +0530 Subject: [PATCH] example: update the in_compliance value in the right way --- examples/nidcpower_source_dc_voltage/measurement.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/nidcpower_source_dc_voltage/measurement.py b/examples/nidcpower_source_dc_voltage/measurement.py index 96a54acda..b25990081 100644 --- a/examples/nidcpower_source_dc_voltage/measurement.py +++ b/examples/nidcpower_source_dc_voltage/measurement.py @@ -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: