mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-05 17:40:40 +02:00
merge bugs
This commit is contained in:
parent
a32e19d74e
commit
c7c6d2d654
@ -2254,21 +2254,6 @@ class Detector(CppDetectorApi):
|
|||||||
def filterresistor(self, value):
|
def filterresistor(self, value):
|
||||||
ut.set_using_dict(self.setFilterResistor, value)
|
ut.set_using_dict(self.setFilterResistor, value)
|
||||||
|
|
||||||
@property
|
|
||||||
@element
|
|
||||||
def filtercell(self):
|
|
||||||
"""
|
|
||||||
[Jungfrau] Set filter capacitor.
|
|
||||||
Note
|
|
||||||
----
|
|
||||||
[Jungfrau] Options: 0-12. Default: 0. Advanced user command.
|
|
||||||
"""
|
|
||||||
return self.getFilterCell()
|
|
||||||
|
|
||||||
@filtercell.setter
|
|
||||||
def filtercell(self, value):
|
|
||||||
ut.set_using_dict(self.setFilterCell, value)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def maxclkphaseshift(self):
|
def maxclkphaseshift(self):
|
||||||
"""
|
"""
|
||||||
|
@ -853,8 +853,7 @@ void init_det(py::module &m) {
|
|||||||
Detector::getFlipRows,
|
Detector::getFlipRows,
|
||||||
py::arg() = Positions{})
|
py::arg() = Positions{})
|
||||||
.def("setFlipRows",
|
.def("setFlipRows",
|
||||||
(void (Detector::*)(bool, sls::Positions)) &
|
(void (Detector::*)(bool, sls::Positions)) & Detector::setFlipRows,
|
||||||
Detector::setFlipRows,
|
|
||||||
py::arg(), py::arg() = Positions{})
|
py::arg(), py::arg() = Positions{})
|
||||||
.def("getRateCorrection",
|
.def("getRateCorrection",
|
||||||
(Result<sls::ns>(Detector::*)(sls::Positions) const) &
|
(Result<sls::ns>(Detector::*)(sls::Positions) const) &
|
||||||
@ -1102,14 +1101,8 @@ void init_det(py::module &m) {
|
|||||||
Detector::getFilterResistor,
|
Detector::getFilterResistor,
|
||||||
py::arg() = Positions{})
|
py::arg() = Positions{})
|
||||||
.def("setFilterResistor",
|
.def("setFilterResistor",
|
||||||
(void (Detector::*)(int, sls::Positions)) & Detector::setFilterResistor,
|
(void (Detector::*)(int, sls::Positions)) &
|
||||||
py::arg(), py::arg() = Positions{})
|
Detector::setFilterResistor,
|
||||||
.def("getFilterCell",
|
|
||||||
(Result<int>(Detector::*)(sls::Positions) const) &
|
|
||||||
Detector::getFilterCell,
|
|
||||||
py::arg() = Positions{})
|
|
||||||
.def("setFilterCell",
|
|
||||||
(void (Detector::*)(int, sls::Positions)) & Detector::setFilterCell,
|
|
||||||
py::arg(), py::arg() = Positions{})
|
py::arg(), py::arg() = Positions{})
|
||||||
.def("getCurrentSource",
|
.def("getCurrentSource",
|
||||||
(Result<bool>(Detector::*)(sls::Positions) const) &
|
(Result<bool>(Detector::*)(sls::Positions) const) &
|
||||||
|
@ -1521,14 +1521,6 @@ void Detector::setGainMode(const defs::gainMode mode, Positions pos) {
|
|||||||
pimpl->Parallel(&Module::setGainMode, pos, mode);
|
pimpl->Parallel(&Module::setGainMode, pos, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result<int> Detector::getFilterCell(Positions pos) const {
|
|
||||||
return pimpl->Parallel(&Module::getFilterCell, pos);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Detector::setFilterCell(int cell, Positions pos) {
|
|
||||||
pimpl->Parallel(&Module::setFilterCell, pos, cell);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Gotthard Specific
|
// Gotthard Specific
|
||||||
|
|
||||||
Result<defs::ROI> Detector::getROI(Positions pos) const {
|
Result<defs::ROI> Detector::getROI(Positions pos) const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user