Merge branch 'ml/fix-chemistry' into 'main'

Fix chemistry

See merge request naaice/poet!30
This commit is contained in:
Max Lübke 2024-05-07 12:30:13 +02:00
commit 6d2d053eac
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 749fdbc2e9478046bf3f270c70e5800637246712
Subproject commit e6e5e0d5156c093241a53e6ce074ef346d64ae26

View File

@ -301,7 +301,7 @@ void poet::ChemistryModule::WorkerRunWorkPackage(WorkPackage &work_package,
std::size_t output_index = 0;
for (std::size_t i = 0; i < work_package.output[wp_id].size(); i++) {
if (std::isnan(work_package.output[wp_id][i])) {
if (!std::isnan(work_package.output[wp_id][i])) {
work_package.output[wp_id][i] = curr_input[output_index++];
}
}