Feature #1620

Extend numpy support

Added by pospelov about 4 years ago. Updated about 4 years ago.

Status:ArchivedStart date:19 Oct 2016
Priority:NormalDue date:
Assignee:pospelov% Done:

0%

Category:-
Target version:Sprint32

Description

We do not have a convenient way to setup IntensityData object from Python, rather than using it's histogramming methods (::setBinContent, ::fill, etc). This makes importing of user data (if the data is in some unsupported format, like 'edf' or rare version of tiff) an uneasy task.

Consider the following:

  • Implement FitSuite::setSimulationAndRealData(simulation, <numpy array>)
  • Implement IHistogram::createFrom(<numpy array>)
  • Implement IHistogram.setData(<numpy array>)

History

#2 Updated by jmfisher about 4 years ago

See also sc-intern/technologies/python-bindings/swig/numpy for an example of automatic conversion numpy arras -> python list -> std::vector and conversely, using swig.

#3 Updated by pospelov about 4 years ago

  • Status changed from New to Sprint
  • Assignee set to pospelov
  • Target version set to Sprint32

Will quickly implement it, to simplify my tutorial's explanations.

#4 Updated by pospelov about 4 years ago

  • Status changed from Sprint to Resolved

#5 Updated by herck about 4 years ago

  • Status changed from Resolved to Archived

Also available in: Atom PDF