mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-16 17:27:14 +02:00
need n_modules
This commit is contained in:
@ -71,6 +71,7 @@ class RawFile : public FileInterface {
|
|||||||
size_t cols() const override;
|
size_t cols() const override;
|
||||||
size_t bitdepth() const override;
|
size_t bitdepth() const override;
|
||||||
xy geometry();
|
xy geometry();
|
||||||
|
size_t n_modules() const;
|
||||||
|
|
||||||
RawMasterFile master() const;
|
RawMasterFile master() const;
|
||||||
|
|
||||||
|
@ -102,5 +102,6 @@ void define_raw_file_io_bindings(py::module &m) {
|
|||||||
.def_property_readonly("bitdepth", &RawFile::bitdepth)
|
.def_property_readonly("bitdepth", &RawFile::bitdepth)
|
||||||
.def_property_readonly("geometry", &RawFile::geometry)
|
.def_property_readonly("geometry", &RawFile::geometry)
|
||||||
.def_property_readonly("detector_type", &RawFile::detector_type)
|
.def_property_readonly("detector_type", &RawFile::detector_type)
|
||||||
.def_property_readonly("master", &RawFile::master);
|
.def_property_readonly("master", &RawFile::master)
|
||||||
|
.def_property_readonly("n_modules", &RawFile::n_modules);
|
||||||
}
|
}
|
@ -97,6 +97,8 @@ size_t RawFile::cols() const { return m_geometry.pixels_x(); }
|
|||||||
size_t RawFile::bitdepth() const { return m_master.bitdepth(); }
|
size_t RawFile::bitdepth() const { return m_master.bitdepth(); }
|
||||||
xy RawFile::geometry() { return m_master.geometry(); }
|
xy RawFile::geometry() { return m_master.geometry(); }
|
||||||
|
|
||||||
|
size_t RawFile::n_modules() const { return m_geometry.n_modules(); };
|
||||||
|
|
||||||
void RawFile::open_subfiles() {
|
void RawFile::open_subfiles() {
|
||||||
if (m_mode == "r")
|
if (m_mode == "r")
|
||||||
for (size_t i : m_geometry.get_modules_in_roi()) {
|
for (size_t i : m_geometry.get_modules_in_roi()) {
|
||||||
|
Reference in New Issue
Block a user