Feature #1666

PythonAPI: Constructor of Histogram2D should accept also numpy arrays with dtype=int

Added by ganeva almost 4 years ago. Updated 9 days ago.

Status:BacklogStart date:24 Nov 2016
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

For the moment, constructor

Histogram2D(const std::vector<std::vector<double>>& data);

accepts only numpy arrays with dtype=float. However, libraries like fabio or gdal produce numpy arrays with dtype=int. The .image data from Elettra synchrotron are also read as a numpy array of integers (due to the binary format). If Histogram2D would accept the integer data, it would save users the conversion step.

History

#1 Updated by wuttke almost 4 years ago

  • Parent task set to #1572

#2 Updated by wuttke 9 days ago

  • Subject changed from Constructor of Histogram2D should accept also numpy arrays with dtype=int to PythonAPI: Constructor of Histogram2D should accept also numpy arrays with dtype=int
  • Status changed from New to Backlog
  • Parent task deleted (#1572)

Also available in: Atom PDF