org.dawb.common.python
Class NumpyUtils

java.lang.Object
  extended by org.dawb.common.python.NumpyUtils

public class NumpyUtils
extends java.lang.Object


Constructor Summary
NumpyUtils()
           
 
Method Summary
static uk.ac.diamond.scisoft.analysis.dataset.AbstractDataset getNumpy(jep.Jep jep, java.lang.String name)
          Currently only works for 1D arrays.
static void setNumpy(jep.Jep jep, uk.ac.diamond.scisoft.analysis.dataset.AbstractDataset set)
          Currently only works for 1D arrays.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumpyUtils

public NumpyUtils()
Method Detail

setNumpy

public static void setNumpy(jep.Jep jep,
                            uk.ac.diamond.scisoft.analysis.dataset.AbstractDataset set)
                     throws java.lang.Throwable
Currently only works for 1D arrays. The name of the data set is used as the python variable.

Parameters:
set -
jep -
Throws:
java.lang.Throwable

getNumpy

public static uk.ac.diamond.scisoft.analysis.dataset.AbstractDataset getNumpy(jep.Jep jep,
                                                                              java.lang.String name)
                                                                       throws java.lang.Throwable
Currently only works for 1D arrays. After the get the name is set to None in python.

Parameters:
name -
dtype -
jep -
Returns:
Throws:
java.lang.Exception
java.lang.Throwable