@@ -126,8 +126,8 @@ std::ostream &operator<<(std::ostream &os, const cycle_state &p) {
126
126
p.q_relative_cycle ,
127
127
p.rainflow_Xlt , p.rainflow_Ylt , p.rainflow_jlt );
128
128
os << buf << p.rainflow_peaks ;
129
- os << " , cum_dt: " << p.cum_dt << " , DOD_max: " << p.DOD_max << " , DOD_min:" << p.DOD_min << " , " ;
130
- os << R"( "cycle_DOD_max": " )" << p.cycle_DOD_max << " }" ;
129
+ os << " , \" cum_dt\" : " << p.cum_dt << " , \" DOD_max\" : " << p.DOD_max << " , \" DOD_min\" :" << p.DOD_min << " , " ;
130
+ os << R"( "cycle_DOD_max": )" << p.cycle_DOD_max << " }" ;
131
131
return os;
132
132
}
133
133
@@ -166,7 +166,7 @@ std::ostream &operator<<(std::ostream &os, const lifetime_state &p) {
166
166
os.precision (3 );
167
167
char buf[1024 ];
168
168
sprintf (buf, R"( "lifetime_state": { "q_relative": %f, "n_cycles": %d, "cycle_DOD": %.3f, "cycle_range": %.3f,
169
- "average_range": %.3f, day_age_of_battery": %.3f, )" ,
169
+ "average_range": %.3f, " day_age_of_battery": %.3f, )" ,
170
170
p.q_relative , p.n_cycles , p.cycle_DOD , p.cycle_range , p.average_range , p.day_age_of_battery );
171
171
os << buf << *p.cycle << " , " ;
172
172
if (p.calendar ) {
0 commit comments