ptypy.simulations.detector.expect2#
- ptypy.simulations.detector.expect2(a)#
generates 1d numpy array with 2 entries generated from multiple inputs (tuples, arrays, scalars). main puprose of this function is to circumvent debugging of input.
expect2( 3.0 ) -> np.array([3.0,3.0]) expect2( (3.0,4.0) ) -> np.array([3.0,4.0])
even higher order inputs possible, though not tested much