anaflow.tools.special.Shaper
- class Shaper(time=0, rad=0, struc_grid=True)[source]
Bases:
object
A class to reshape radius-time input-output in a good way.
- Parameters
time (
numpy.ndarray
orfloat
, optional) – Array with all time-points where the function should be evaluated. Default: 0rad (
numpy.ndarray
orfloat
, optional) – Array with all radii where the function should be evaluated. Default: 0struc_grid (
bool
, optional) – If this is set toFalse
, the rad and time array will be merged and interpreted as single, r-t points. In this case they need to have the same shapes. Otherwise a structured t-r grid is created. Default:True
Methods
reshape
(result)Reshape a time-rad result according to the input shape.