mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-12-23 05:21:30 +01:00
fix ci and add formatting (#48)
* add dependency * dont run blocking zmq example and add formatting * format files
This commit is contained in:
@@ -9,23 +9,19 @@ using aare::File;
|
||||
using aare::FileConfig;
|
||||
using aare::Frame;
|
||||
|
||||
|
||||
int main() {
|
||||
auto path = std::filesystem::path("/tmp/test.npy");
|
||||
auto dtype = aare::DType(typeid(uint32_t));
|
||||
FileConfig cfg = {path, dtype, 100, 100};
|
||||
File npy(path, "w",cfg);
|
||||
File npy(path, "w", cfg);
|
||||
Frame f(100, 100, dtype.bitdepth());
|
||||
for (int i = 0; i < 10000; i++) {
|
||||
f.set<uint32_t>(i/100, i%100,i);
|
||||
f.set<uint32_t>(i / 100, i % 100, i);
|
||||
}
|
||||
|
||||
npy.write(f);
|
||||
f.set<uint32_t>(0,0,77);
|
||||
f.set<uint32_t>(0, 0, 77);
|
||||
npy.write(f);
|
||||
npy.write(f);
|
||||
return 0;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user