insidapy.testdata package

Submodules

insidapy.testdata.datagen module

insidapy.testdata.datagen.generate_test_data(plotting: bool = False, save: bool = False)
insidapy.testdata.datagen.save_figure(save: bool = False, figure_name: str = 'figure', savedirectory: str = './figures', save_figure_exensions: list = ['svg', 'png'])

Saves a figure.

Parameters:
  • save (bool) – Boolean indicating whether the figure should be saved. Defaults to False

  • figure_name (str) – Name of the figure. Defaults to ‘figure’.

  • savedirectory (str) – Directory in which the figure should be saved. Defaults to ‘./figures’.

  • save_figure_exensions (list) – List of file extensions in which the figure should be saved. Defaults to [‘svg’,’png’].

insidapy.testdata.datagen.test_ode_function(t_, y_, p_)

Custom ODE system. A batch reactor is modeled with two species. The following system is implemented: A <-[k1],[k2]-> B -[k3]-> C

No arguments are used in this function.

Parameters:
  • y (array) – Concentration of species of shape [n,].

  • t (scalar) – time.

Returns:

dydt - Derivative of the species of shape [n,].

Return type:

array