Skip to content
Snippets Groups Projects
Commit 604f0ee6 authored by Christof Kaufmann's avatar Christof Kaufmann
Browse files

python: Make the interface more testable

parent 1765057c
No related branches found
No related tags found
No related merge requests found
......@@ -453,7 +453,11 @@ PYBIND11_MODULE(_imagefusion, module) {
py::class_<imfu::StarfmOptions, imfu::Options> starfmopts(module, "StarfmOptions");
starfmopts.def(py::init());
starfmopts.def("setSinglePairDate", &imfu::StarfmOptions::setSinglePairDate, "Configure for single image pair mode and set the pair date");
starfmopts.def("getSinglePairDate", &imfu::StarfmOptions::getSinglePairDate, "Get the pair date, if configured as single pair mode");
starfmopts.def("isSinglePairModeConfigured", &imfu::StarfmOptions::isSinglePairModeConfigured, "Check if single pair mode is configured");
starfmopts.def("setDoublePairDates", &imfu::StarfmOptions::setDoublePairDates, "Configure for double image pair mode and set both pair dates");
starfmopts.def("getDoublePairDates", &imfu::StarfmOptions::getDoublePairDates, "Get the pair date, if configured as double pair mode");
starfmopts.def("isDoublePairModeConfigured", &imfu::StarfmOptions::isDoublePairModeConfigured, "Check if double pair mode is configured");
starfmopts.def("getHighResTag", &imfu::StarfmOptions::getHighResTag, "Get the high resolution tag");
starfmopts.def("setHighResTag", &imfu::StarfmOptions::setHighResTag, "Set the high resolution tag used in the MultiResImages object");
starfmopts.def("getLowResTag", &imfu::StarfmOptions::getLowResTag, "Get the low resolution tag");
......@@ -485,6 +489,8 @@ PYBIND11_MODULE(_imagefusion, module) {
estarfmopts.def(py::init());
estarfmopts.def("setDate1", &imfu::EstarfmOptions::setDate1, "Set the date of the first input image pair");
estarfmopts.def("setDate3", &imfu::EstarfmOptions::setDate3, "Set the date of the second input image pair");
estarfmopts.def("getDate1", &imfu::EstarfmOptions::getDate1, "Get the date of the first input image pair");
estarfmopts.def("getDate3", &imfu::EstarfmOptions::getDate3, "Get the date of the second input image pair");
estarfmopts.def("getHighResTag", &imfu::EstarfmOptions::getHighResTag, "Get the high resolution tag");
estarfmopts.def("setHighResTag", &imfu::EstarfmOptions::setHighResTag, "Set the high resolution tag used in the MultiResImages object");
estarfmopts.def("getLowResTag", &imfu::EstarfmOptions::getLowResTag, "Get the low resolution tag");
......@@ -508,6 +514,7 @@ PYBIND11_MODULE(_imagefusion, module) {
py::class_<imfu::FitFCOptions, imfu::Options> fitfcopts(module, "FitFCOptions");
fitfcopts.def(py::init());
fitfcopts.def("setPairDate", &imfu::FitFCOptions::setPairDate, "Set the date of the input image pair");
fitfcopts.def("getPairDate", &imfu::FitFCOptions::getPairDate, "Get the date of the input image pair");
fitfcopts.def("getHighResTag", &imfu::FitFCOptions::getHighResTag, "Get the high resolution tag");
fitfcopts.def("setHighResTag", &imfu::FitFCOptions::setHighResTag, "Set the high resolution tag used in the MultiResImages object");
fitfcopts.def("getLowResTag", &imfu::FitFCOptions::getLowResTag, "Get the low resolution tag");
......@@ -524,6 +531,8 @@ PYBIND11_MODULE(_imagefusion, module) {
spstfmopts.def(py::init());
spstfmopts.def("setDate1", &imfu::SpstfmOptions::setDate1, "Set the date of the first input image pair");
spstfmopts.def("setDate3", &imfu::SpstfmOptions::setDate3, "Set the date of the second input image pair");
spstfmopts.def("getDate1", &imfu::SpstfmOptions::getDate1, "Get the date of the first input image pair");
spstfmopts.def("getDate3", &imfu::SpstfmOptions::getDate3, "Get the date of the second input image pair");
spstfmopts.def("getHighResTag", &imfu::SpstfmOptions::getHighResTag, "Get the high resolution tag");
spstfmopts.def("setHighResTag", &imfu::SpstfmOptions::setHighResTag, "Set the high resolution tag used in the MultiResImages object");
spstfmopts.def("getLowResTag", &imfu::SpstfmOptions::getLowResTag, "Get the low resolution tag");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment