Skip to content

Commit 41e7ce9

Browse files
committed
Using MAKE_SED now removes the fit stage, it just dumps the SEDs.
1 parent e2ed84b commit 41e7ce9

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

src/fast++.cpp

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,24 @@ int phypp_main(int argc, char* argv[]) {
2020
return 1;
2121
}
2222

23-
// Write SEDs if asked
24-
gridder.write_seds();
25-
26-
// Initizalize the fitter
27-
fitter_t fitter(opts, input, gridder, output);
28-
29-
// Build/read the grid and fit galaxies
30-
if (!gridder.build_and_send(fitter)) {
31-
return 1;
23+
if (opts.make_seds.empty()) {
24+
// Initizalize the fitter
25+
fitter_t fitter(opts, input, gridder, output);
26+
27+
// Build/read the grid and fit galaxies
28+
if (!gridder.build_and_send(fitter)) {
29+
return 1;
30+
}
31+
32+
// Compile results
33+
fitter.find_best_fits();
34+
35+
// Write output to disk
36+
write_output(opts, input, gridder, output);
37+
} else {
38+
// Write SEDs if asked
39+
gridder.write_seds();
3240
}
3341

34-
// Compile results
35-
fitter.find_best_fits();
36-
37-
// Write output to disk
38-
write_output(opts, input, gridder, output);
39-
4042
return 0;
4143
}

0 commit comments

Comments
 (0)