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 or float, optional) – Array with all time-points where the function should be evaluated. Default: 0

  • rad (numpy.ndarray or float, optional) – Array with all radii where the function should be evaluated. Default: 0

  • struc_grid (bool, optional) – If this is set to False, 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.

reshape(result)[source]

Reshape a time-rad result according to the input shape.