mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-22 03:37:57 +02:00
format
This commit is contained in:
@ -24,19 +24,18 @@
|
|||||||
|
|
||||||
#include "aare/NumpyHelpers.hpp"
|
#include "aare/NumpyHelpers.hpp"
|
||||||
|
|
||||||
namespace aare{
|
namespace aare {
|
||||||
|
|
||||||
std::string NumpyHeader::to_string() const{
|
std::string NumpyHeader::to_string() const {
|
||||||
std::stringstream sstm;
|
std::stringstream sstm;
|
||||||
sstm << "dtype: " << dtype.str() << ", fortran_order: " << fortran_order << ' ';
|
sstm << "dtype: " << dtype.str() << ", fortran_order: " << fortran_order << ' ';
|
||||||
sstm << "shape: (";
|
sstm << "shape: (";
|
||||||
for (auto item : shape)
|
for (auto item : shape)
|
||||||
sstm << item << ',';
|
sstm << item << ',';
|
||||||
sstm << ')';
|
sstm << ')';
|
||||||
return sstm.str();
|
return sstm.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
namespace NumpyHelpers {
|
namespace NumpyHelpers {
|
||||||
|
|
||||||
std::unordered_map<std::string, std::string> parse_dict(std::string in, const std::vector<std::string> &keys) {
|
std::unordered_map<std::string, std::string> parse_dict(std::string in, const std::vector<std::string> &keys) {
|
||||||
|
Reference in New Issue
Block a user