Philosophy on power supply polarity handling
Dear all,
I'm trying to figure out how labRemote handles polarities of (mostly) HV supplies. I don't see any abstraction of polarity on the level of IPowerSupply
. Furthermore, e.g. tools/powersupply
make use of getopt_long
which will try to parse any -
, which is the only character which will make an input negative for std::stod
calls (e.g. here https://gitlab.cern.ch/berkeleylab/labRemote/-/blob/main/src/tools/powersupply.cpp?ref_type=heads#L226).
Is there any consensus on how this should be handled? I think this is somewhat a critical point where labRemote should impose a rule, otherwise I see lots of
Cheers