From 4eace55dd4053afc2fb40f73bc2eee0ca5a05aa3 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Wed, 14 Nov 2018 11:44:10 -0600 Subject: update yaml format to store fit results as a dictionary indexed by the particle id --- src/fit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/fit.c') diff --git a/src/fit.c b/src/fit.c index 82586f9..2b9652a 100644 --- a/src/fit.c +++ b/src/fit.c @@ -5580,8 +5580,7 @@ int main(int argc, char **argv) long long elapsed = (tv_stop.tv_sec - tv_start.tv_sec)*1000 + (tv_stop.tv_usec - tv_start.tv_usec)/1000; if (fout) { - fprintf(fout, " -\n"); - fprintf(fout, " id: %i\n", particles[i]); + fprintf(fout, " %i:\n", particles[i]); fprintf(fout, " energy: %.2f\n", xopt[0]); fprintf(fout, " posx: %.2f\n", xopt[1]); fprintf(fout, " posy: %.2f\n", xopt[2]); -- cgit