Skip to content
Snippets Groups Projects
Commit 4ab06ca0 authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

correct tiff includes; further manual edits

parent fa036b73
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,6 @@
#ifdef BORNAGAIN_TIFF_SUPPORT
#include <tiffio.hxx>
#include "Utils.h"
#include "BornAgainNamespace.h"
#include "TiffHandler.h"
......
......@@ -20,6 +20,7 @@
#include "OutputData.h"
#include <tiffio.h>
#include <tiffio.hxx>
#include <memory>
//! @class TiffHandler
......@@ -34,9 +35,9 @@ public:
void read(std::istream& input_stream);
const OutputData<double> *getOutputData() const;
const OutputData<double>* getOutputData() const;
void write(const OutputData<double> &data, std::ostream &output_stream);
void write(const OutputData<double>& data, std::ostream& output_stream);
private:
void read_header();
......@@ -46,13 +47,12 @@ private:
void close();
void create_output_data();
TIFF *m_tiff;
TIFF* m_tiff;
size_t m_width;
size_t m_height;
std::unique_ptr<OutputData<double> > m_data;
std::unique_ptr<OutputData<double>> m_data;
};
#endif // BORNAGAIN_TIFF_SUPPORT
#endif // TIFFHANDLER_H
......@@ -14,13 +14,14 @@
// ************************************************************************** //
#include "NumpyUtils.h"
#include "Exceptions.h"
#ifdef BORNAGAIN_PYTHON
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#define PY_ARRAY_UNIQUE_SYMBOL BORNAGAIN_PYTHONAPI_ARRAY
#define NO_IMPORT_ARRAY
#include "NumpyUtils.h"
#include "Exceptions.h"
#include "numpy/arrayobject.h"
PyObject* Utils::createNumpyArray(const std::vector<double>& data)
......
......@@ -13,15 +13,14 @@
//
// ************************************************************************** //
#include "OutputData.h"
#ifdef BORNAGAIN_PYTHON
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#define PY_ARRAY_UNIQUE_SYMBOL BORNAGAIN_PYTHONAPI_ARRAY
#define NO_IMPORT_ARRAY
#include "numpy/arrayobject.h"
#include "OutputData.h"
#include "numpy/arrayobject.h"
template<>
PyObject *OutputData<double>::getArray() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment