Skip to content

Commit c31b121

Browse files
committed
Addresses further review comments
1 parent 4242843 commit c31b121

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

cpp/includes/defines.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,6 @@ boundHandling : str
642642
[DREAM] How steps past the space boundaries should be handled. Can be 'off', 'reflect', 'bound', or 'fold'.
643643
adaptPCR : bool
644644
[DREAM] Whether the crossover probability for differential evolution should be adapted during the run.
645-
calcSLD : bool
646-
Whether SLD will be calculated (for live plotting etc.)
647645
)";
648646

649647
struct Control {
@@ -675,7 +673,6 @@ struct Control {
675673
real_T pUnitGamma {};
676674
std::string boundHandling {};
677675
boolean_T adaptPCR;
678-
boolean_T calcSLD {};
679676
std::string IPCFilePath {};
680677
};
681678

cpp/rat.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,6 @@ PYBIND11_MODULE(rat_core, m) {
921921
.def_readwrite("pUnitGamma", &Control::pUnitGamma)
922922
.def_readwrite("boundHandling", &Control::boundHandling)
923923
.def_readwrite("adaptPCR", &Control::adaptPCR)
924-
.def_readwrite("calcSLD", &Control::calcSLD)
925924
.def_readwrite("IPCFilePath", &Control::IPCFilePath)
926925
.def(py::pickle(
927926
[](const Control &ctrl) { // __getstate__
@@ -931,10 +930,10 @@ PYBIND11_MODULE(rat_core, m) {
931930
ctrl.targetValue, ctrl.numGenerations, ctrl.strategy, ctrl.nLive, ctrl.nMCMC, ctrl.propScale,
932931
ctrl.nsTolerance, ctrl.numSimulationPoints, ctrl.resampleMinAngle, ctrl.resampleNPoints,
933932
ctrl.updateFreq, ctrl.updatePlotFreq, ctrl.nSamples, ctrl.nChains, ctrl.jumpProbability,
934-
ctrl.pUnitGamma, ctrl.boundHandling, ctrl.adaptPCR, ctrl.calcSLD, ctrl.IPCFilePath);
933+
ctrl.pUnitGamma, ctrl.boundHandling, ctrl.adaptPCR, ctrl.IPCFilePath);
935934
},
936935
[](py::tuple t) { // __setstate__
937-
if (t.size() != 30)
936+
if (t.size() != 29)
938937
throw std::runtime_error("Encountered invalid state unpickling ProblemDefinition object!");
939938

940939
/* Create a new C++ instance */
@@ -968,8 +967,7 @@ PYBIND11_MODULE(rat_core, m) {
968967
ctrl.pUnitGamma = t[25].cast<real_T>();
969968
ctrl.boundHandling = t[26].cast<std::string>();
970969
ctrl.adaptPCR = t[27].cast<boolean_T>();
971-
ctrl.calcSLD = t[28].cast<boolean_T>();
972-
ctrl.IPCFilePath = t[29].cast<std::string>();
970+
ctrl.IPCFilePath = t[28].cast<std::string>();
973971

974972
return ctrl;
975973
}));

0 commit comments

Comments
 (0)