merge numpy changes with project structure

This commit is contained in:
Bechir
2024-03-08 11:47:27 +01:00
parent 0d552d6f75
commit 47d381d299
14 changed files with 396 additions and 114 deletions

View File

@ -56,3 +56,23 @@ template <> TimingMode StringTo(std::string);
using DataTypeVariants = std::variant<uint16_t, uint32_t>;
struct RawFileConfig {
int module_gap_row{};
int module_gap_col{};
bool operator==(const RawFileConfig &other) const {
if (module_gap_col != other.module_gap_col)
return false;
if (module_gap_row != other.module_gap_row)
return false;
return true;
}
};
const char little_endian_char = '<';
const char big_endian_char = '>';
const char no_endian_char = '|';
const std::array<char, 3> endian_chars = {little_endian_char, big_endian_char, no_endian_char};
const std::array<char, 4> numtype_chars = {'f', 'i', 'u', 'c'};