mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-06 21:00:41 +02:00

major changes: - add python bindings for all c++ features except network_io - changes to cross compile on windows,linux and macos - fix bugs with cluster_finder - use Dtype in Frame instead of bitdepth - remove boost::program_options and replace with our implementation - add Transforms class that applies a sequence of functions (c++ or python functions) on a Frame. - remove frame reorder and flip from SubFile.cpp. use Transforms instead - Test clusterFinder and Pedestal results in comparison with slsDetectorCalibration --------- Co-authored-by: Bechir <bechir.brahem420@gmail.com> Co-authored-by: Erik Fröjdh <erik.frojdh@gmail.com>
25 lines
595 B
C++
25 lines
595 B
C++
#include "aare.hpp"
|
|
#include "aare/examples/defs.hpp"
|
|
|
|
#include <cassert>
|
|
#include <fmt/core.h>
|
|
#include <string>
|
|
using namespace aare;
|
|
using namespace std;
|
|
|
|
int main() {
|
|
logger::set_verbosity(logger::DEBUG);
|
|
|
|
std::string const endpoint1 = "tcp://127.0.0.1:" + std::to_string(5555);
|
|
std::string const endpoint2 = "tcp://127.0.0.1:" + std::to_string(5556);
|
|
|
|
ZmqMultiReceiver socket({endpoint1, endpoint2}, {1, 2});
|
|
|
|
socket.connect();
|
|
while (true) {
|
|
auto frames = socket.receive_n();
|
|
logger::info("Received", frames.size(), "frames");
|
|
}
|
|
|
|
return 0;
|
|
} |