mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
wip
This commit is contained in:
parent
57534fcbee
commit
42257d8f67
@ -1199,6 +1199,13 @@ class Detector {
|
|||||||
*/
|
*/
|
||||||
void setGainMode(const defs::gainMode mode, Positions pos = {});
|
void setGainMode(const defs::gainMode mode, Positions pos = {});
|
||||||
|
|
||||||
|
/** [Jungfrau] Advanced */
|
||||||
|
Result<int> getFilterCell(Positions pos = {}) const;
|
||||||
|
|
||||||
|
/** [Jungfrau] Advanced Options[0-12]
|
||||||
|
*/
|
||||||
|
void setFilterCell(int cell, Positions pos = {});
|
||||||
|
|
||||||
///@{
|
///@{
|
||||||
|
|
||||||
/** @name Gotthard Specific */
|
/** @name Gotthard Specific */
|
||||||
|
@ -505,8 +505,8 @@ TEST_CASE("filtercell", "[.cmd]") {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
proxy.Call("filtercell", {"15"}, -1, PUT, oss);
|
proxy.Call("filtercell", {"12"}, -1, PUT, oss);
|
||||||
REQUIRE(oss.str() == "filtercell 15\n");
|
REQUIRE(oss.str() == "filtercell 12\n");
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
@ -518,8 +518,10 @@ TEST_CASE("filtercell", "[.cmd]") {
|
|||||||
proxy.Call("filtercell", {}, -1, GET, oss);
|
proxy.Call("filtercell", {}, -1, GET, oss);
|
||||||
REQUIRE(oss.str() == "filtercell 0\n");
|
REQUIRE(oss.str() == "filtercell 0\n");
|
||||||
}
|
}
|
||||||
REQUIRE_THROWS(proxy.Call("filtercell", {"16"}, -1, PUT));
|
REQUIRE_THROWS(proxy.Call("filtercell", {"13"}, -1, PUT));
|
||||||
det.setFilterCell(prev_val);
|
for (int i = 0; i != det.size(); ++i) {
|
||||||
|
det.setFilterCell(prev_val[i], {i});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// chip version 1.0
|
// chip version 1.0
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user