help in cmdline, fixed get for daclist in python

This commit is contained in:
2022-03-23 11:27:52 +01:00
parent 9995b74217
commit 0803f1bc1f
2 changed files with 11 additions and 6 deletions

View File

@@ -1571,8 +1571,12 @@ class Detector(CppDetectorApi):
@property @property
def daclist(self): 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 @property
def dacvalues(self): def dacvalues(self):

View File

@@ -1128,10 +1128,11 @@ std::string CmdProxy::DacList(const int action) {
std::ostringstream os; std::ostringstream os;
os << cmd << ' '; os << cmd << ' ';
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "\n\t\tGets the list of dac names for every dac for this " os << "\n\t[dacname1 dacname2 .. dacname18] \n\t\t[ChipTestBoard] Set "
"detector.\n\t[dacname1 dacname2 .. dacname18] " "the list of dac names for this detector.\n\t\t[All] Gets the "
"\n\t\t[ChipTestBoard] Set the list of dac names for this " "list "
"detector." "of "
"dac names for every dac for this detector."
<< '\n'; << '\n';
} else if (action == slsDetectorDefs::GET_ACTION) { } else if (action == slsDetectorDefs::GET_ACTION) {
if (!args.empty()) { if (!args.empty()) {