Feature #1666

Feature #1290: === Core: framework ===

Feature #1572: == Python ==

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

Added by ganeva over 3 years ago. Updated over 3 years ago.

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


Target version:-


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.


#1 Updated by wuttke over 3 years ago

  • Parent task set to #1572

Also available in: Atom PDF