From 0803f1bc1f0f0ee5fbb548361d2c2547d8d9f4b7 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Wed, 23 Mar 2022 11:27:52 +0100 Subject: [PATCH] help in cmdline, fixed get for daclist in python --- python/slsdet/detector.py | 8 ++++++-- slsDetectorSoftware/src/CmdProxy.cpp | 9 +++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/python/slsdet/detector.py b/python/slsdet/detector.py index d60dd05e8..25715e61a 100755 --- a/python/slsdet/detector.py +++ b/python/slsdet/detector.py @@ -1571,8 +1571,12 @@ class Detector(CppDetectorApi): @property def daclist(self): - """Gets the list of enums for every dac for this detector.""" - return self.getDacList() + """ + List of enums for every dac for this detector. + :setter: Only implemented for Chiptestboard + + """ + return self.getDacNames() @property def dacvalues(self): diff --git a/slsDetectorSoftware/src/CmdProxy.cpp b/slsDetectorSoftware/src/CmdProxy.cpp index 9c8d28af4..f995e4a28 100644 --- a/slsDetectorSoftware/src/CmdProxy.cpp +++ b/slsDetectorSoftware/src/CmdProxy.cpp @@ -1128,10 +1128,11 @@ std::string CmdProxy::DacList(const int action) { std::ostringstream os; os << cmd << ' '; if (action == slsDetectorDefs::HELP_ACTION) { - os << "\n\t\tGets the list of dac names for every dac for this " - "detector.\n\t[dacname1 dacname2 .. dacname18] " - "\n\t\t[ChipTestBoard] Set the list of dac names for this " - "detector." + os << "\n\t[dacname1 dacname2 .. dacname18] \n\t\t[ChipTestBoard] Set " + "the list of dac names for this detector.\n\t\t[All] Gets the " + "list " + "of " + "dac names for every dac for this detector." << '\n'; } else if (action == slsDetectorDefs::GET_ACTION) { if (!args.empty()) {