Feature #437

Feature #287: IntensityData campaign

Provide OutputData with ExportToNumpy function for PythonAPI

Added by pospelov over 6 years ago. Updated about 5 years ago.

Status:ArchivedStart date:10 Oct 2013
Priority:LowDue date:
Assignee:pospelov% Done:

0%

Category:-
Target version:Sprint 17

Description

This has to be discussed. We need some general approach to access OutputData in Python,
including the cases when OutputData contains 2x2 matrices.

Now we have an approach in C++:
  • data = simulation->getOutputData()
in Python (way 1)
  • numpy_data = GetOutputData(simulation)
  • axis0 = GetOutputDataAxis(simulation,0)
  • axis1 = GetOutputDataAxis(simulation,1)
in Python (way 2)
  • data = simulation.getOutputData()

i.e. C++ way kind of work, but iterators and all that business is broken

So we need common solution.

History

#1 Updated by pospelov over 6 years ago

  • Description updated (diff)

#2 Updated by pospelov over 6 years ago

  • Priority changed from Normal to High

#3 Updated by pospelov over 6 years ago

  • Status changed from New to Sprint

#4 Updated by pospelov over 6 years ago

  • Target version set to Sprint 17

#5 Updated by pospelov over 6 years ago

  • Description updated (diff)
  • Assignee set to pospelov

#6 Updated by pospelov over 6 years ago

  • Status changed from Sprint to Resolved

Finally, in python we have IntensityData == OutputData<double> and couple of new functions defined

  • simulation.getIntensityDaya().getArray() # will return numpy array
  • simulation.getPolarizedOutputData(raw,column).getArray()
  • All python use cases are updated

#7 Updated by pospelov over 6 years ago

  • Status changed from Resolved to Archived

#8 Updated by wuttke about 5 years ago

  • Priority changed from High to Low

Also available in: Atom PDF