BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Class for reading and writing OutputData from simple ASCII file with the layout as in numpy.savetxt. More...
Public Member Functions | |
OutputData< double > * | readOutputData (std::istream &input_stream) |
void | writeOutputData (const OutputData< double > &data, std::ostream &output_stream) |
Static Private Member Functions | |
static double | ignoreDenormalized (double value) |
static void | write1DRepresentation (const OutputData< double > &data, std::ostream &output_stream) |
static void | write2DRepresentation (const OutputData< double > &data, std::ostream &output_stream) |
Class for reading and writing OutputData from simple ASCII file with the layout as in numpy.savetxt.
Definition at line 31 of file OutputDataReadWriteNumpyTXT.h.
|
staticprivate |
Definition at line 133 of file OutputDataReadWriteNumpyTXT.cpp.
Referenced by write1DRepresentation(), and write2DRepresentation().
OutputData< double > * OutputDataReadWriteNumpyTXT::readOutputData | ( | std::istream & | input_stream | ) |
Definition at line 29 of file OutputDataReadWriteNumpyTXT.cpp.
References ArrayUtils::createData(), DataFormatUtils::parse_doubles(), and StringUtils::trim().
Referenced by IntensityDataIOFactory::readOutputData().
|
staticprivate |
Definition at line 98 of file OutputDataReadWriteNumpyTXT.cpp.
References OutputData< T >::axis(), IAxis::binCenters(), ignoreDenormalized(), and StringUtils::scientific().
Referenced by writeOutputData().
|
staticprivate |
Definition at line 112 of file OutputDataReadWriteNumpyTXT.cpp.
References OutputData< T >::axis(), ArrayUtils::createVector2D(), ignoreDenormalized(), StringUtils::scientific(), and IAxis::size().
Referenced by writeOutputData().
void OutputDataReadWriteNumpyTXT::writeOutputData | ( | const OutputData< double > & | data, |
std::ostream & | output_stream | ||
) |
Definition at line 78 of file OutputDataReadWriteNumpyTXT.cpp.
References OutputData< T >::rank(), write1DRepresentation(), and write2DRepresentation().
Referenced by IntensityDataIOFactory::writeOutputData().