Skip to content

Commit

Permalink
DAQ event num getter/setter
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed Dec 11, 2024
1 parent 5ba84f1 commit b928422
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pyxcp/cpp_ext/daqlist.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class DaqList {
return m_event_num;
}

void set_event_num(std::uint16_t event_num) {
m_event_num = event_num;
}

bool get_stim() const {
return m_stim;
}
Expand Down Expand Up @@ -75,7 +79,6 @@ class DaqList {

void set_measurements_opt(const std::vector<Bin>& measurements_opt) {
m_measurements_opt = measurements_opt;

auto odt_count = 0u;
auto total_entries = 0u;
auto total_length = 0u;
Expand Down
2 changes: 1 addition & 1 deletion pyxcp/cpp_ext/extension_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ PYBIND11_MODULE(cpp_ext, m) {
)
.def("__repr__", [](const DaqList& self) { return self.to_string(); })
.def_property("name", &DaqList::get_name, nullptr)
.def_property("event_num", &DaqList::get_event_num, nullptr)
.def_property("event_num", &DaqList::get_event_num, &DaqList::set_event_num)
.def_property("stim", &DaqList::get_stim, nullptr)
.def_property("enable_timestamps", &DaqList::get_enable_timestamps, nullptr)
.def_property("measurements", &DaqList::get_measurements, nullptr)
Expand Down

0 comments on commit b928422

Please sign in to comment.