Skip to content

Commit 3b1182a

Browse files
ajbairdStevenAWhite
authored andcommitted
abaird - patient generator generates too many broken patients, commenting out distributions until we can get it to be a bit more reliable, all other data fields seem to work well after testing. Fixing a nan that pops up for the agglutinate model
1 parent 410e508 commit 3b1182a

File tree

3 files changed

+19
-20
lines changed

3 files changed

+19
-20
lines changed

projects/biogears/libBiogears/src/cdm/substance/SESubstanceClearance.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ bool SESubstanceClearance::HasCellBirthRate() const
223223
//-----------------------------------------------------------------------------
224224
SEScalarFrequency& SESubstanceClearance::GetCellBirthRate()
225225
{
226-
227226
return m_def.CellBirthRate;
228227
}
229228
//-----------------------------------------------------------------------------

projects/biogears/libBiogears/src/engine/Controller/BioGears.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ bool BioGears::SetupPatient()
617617
double respirationRate_bpm;
618618
double respirationRateStandard_bpm = 14.0;
619619
double respirationRateMax_bpm = 20.0;
620-
double respirationRateMin_bpm = 12.0;
620+
double respirationRateMin_bpm = 10.0;
621621
if (!m_Patient->HasRespirationRateBaseline()) {
622622
respirationRate_bpm = respirationRateStandard_bpm;
623623
m_Patient->GetRespirationRateBaseline().SetValue(respirationRate_bpm, FrequencyUnit::Per_min);

projects/cli/src/data/PatientGenerator.cpp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -148,24 +148,24 @@ bool PatientGenerator::process(const std::string& name, const std::string& value
148148
} catch (std::exception e) {
149149
rValue = false;
150150
}
151-
} else if ("RightLungFraction" == name) {
152-
PatientData::RightLungRatio_type rlr_data;
153-
try {
154-
rlr_data.value(std::stod(value));
155-
patient.RightLungRatio(rlr_data);
156-
} catch (std::exception e) {
157-
rValue = false;
158-
}
159-
} else if ("SkinSurfaceArea" == name) {
160-
size_t pos;
161-
PatientData::SkinSurfaceArea_type ssa_data;
162-
try {
163-
ssa_data.value(std::stod(value, &pos));
164-
ssa_data.unit(biogears::trim(value.substr(pos)));
165-
patient.SkinSurfaceArea(ssa_data);
166-
} catch (std::exception e) {
167-
rValue = false;
168-
}
151+
//} else if ("RightLungFraction" == name) {
152+
// PatientData::RightLungRatio_type rlr_data;
153+
// try {
154+
// rlr_data.value(std::stod(value));
155+
// patient.RightLungRatio(rlr_data);
156+
// } catch (std::exception e) {
157+
// rValue = false;
158+
// }
159+
//} else if ("SkinSurfaceArea" == name) {
160+
// size_t pos;
161+
// PatientData::SkinSurfaceArea_type ssa_data;
162+
// try {
163+
// ssa_data.value(std::stod(value, &pos));
164+
// ssa_data.unit(biogears::trim(value.substr(pos)));
165+
// patient.SkinSurfaceArea(ssa_data);
166+
// } catch (std::exception e) {
167+
// rValue = false;
168+
// }
169169
} else if ("BasalMetabolicRate" == name) {
170170
size_t pos;
171171
PatientData::BasalMetabolicRate_type bmr_data;

0 commit comments

Comments
 (0)