mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
More cleanup
This commit is contained in:
parent
179cb5fc01
commit
6e4ece542a
17 changed files with 40 additions and 66 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include <exception>
|
||||
#define SATDUMP_DLL_EXPORT2 1
|
||||
#include "processing.h"
|
||||
#include "logger.h"
|
||||
#include "processing.h"
|
||||
#include <filesystem>
|
||||
|
||||
#include "core/config.h"
|
||||
|
|
@ -19,14 +20,15 @@ namespace satdump
|
|||
void process(std::string downlink_pipeline, std::string input_level, std::string input_file, std::string output_file, nlohmann::json parameters)
|
||||
{
|
||||
// Get pipeline
|
||||
pipeline::Pipeline pipeline = pipeline::getPipelineFromID(downlink_pipeline);
|
||||
// if (!pipeline.has_value())
|
||||
// {
|
||||
// logger->critical("Pipeline " + downlink_pipeline + " does not exist!");
|
||||
// return;
|
||||
// } TODOREWORK
|
||||
|
||||
process(pipeline, input_level, input_file, output_file, parameters);
|
||||
try
|
||||
{
|
||||
pipeline::Pipeline pipeline = pipeline::getPipelineFromID(downlink_pipeline);
|
||||
process(pipeline, input_level, input_file, output_file, parameters);
|
||||
}
|
||||
catch (std::exception &e)
|
||||
{
|
||||
logger->error("Error processing! %s", e.what());
|
||||
}
|
||||
}
|
||||
|
||||
void process(pipeline::Pipeline downlink_pipeline, std::string input_level, std::string input_file, std::string output_file, nlohmann::json parameters)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue