pycast.common

class pycast.common.profileme._ProfileDecorator(filelocation)[source]

Bases: object

Decorator class that build a wrapper around any function.

Warning:The decorator does not take recursive calls into account!
__call__(func)[source]

Returns a wrapped version of the called function.

Parameters:func (function) – Function that should be wrapped.
Returns:Returns a wrapped version of the called function.
Return type:function
__init__(filelocation)[source]

Initializes the ProfileMe decorator.

Parameters:
  • func (function) – Function that will be profiles.
  • filelocation (string) – Location for the profiling results.
pycast.common.profileme.profileMe

alias of _ProfileDecorator

pycast.common.helper.linear_interpolation(first, last, steps)[source]

Interpolates all missing values using linear interpolation.

Parameters:
  • first (numeric) – Start value for the interpolation.
  • last (numeric) – End Value for the interpolation
  • steps (integer) – Number of missing values that have to be calculated.
Returns:

Returns a list of floats containing only the missing values.

Return type:

list

Todo:

Define a more general interface!

Previous topic

pycast

Next topic

pycast.common.timeseries

This Page