Skip to content

Commit

Permalink
fixing a bug where initial state in the rxnlog file
Browse files Browse the repository at this point in the history
was missing a "[" if no operations were present
  • Loading branch information
ASinanSaglam committed May 3, 2023
1 parent 2d0eca6 commit 8195860
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NFinput/NFinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1079,11 +1079,12 @@ string NFinput::initStartSpecies(
logstr.erase(logstr.end()-2, logstr.end());
logstr += "\n ],\n";
// AS2023
logstr += " \"ops\": [\n";
logstr += " \"ops\": [\n ";
for(int k=0;k<operations.size();k++) {
logstr += " " + operations[k] + ",\n";
}
// AS2023
// deleting the extra new line at the end
logstr.erase(logstr.end()-2, logstr.end());
logstr += "\n ]\n";
logstr += " },\n";
Expand Down

0 comments on commit 8195860

Please sign in to comment.