gemseo_scilab

Show inherited members

py_scilab module

Scilab wrapper.

class gemseo_scilab.py_scilab.ScilabFunction(fun_def, name, args, outs)[source]

Bases: object

A scilab function.

Constructor.

Parameters:
  • fun_def (str) – The definition of the function.

  • name (str) – The name of the function.

  • args (Sequence[str]) – The arguments of the function.

  • outs (Sequence[str]) – The outputs of the function.

args: Sequence[str]
name: str
outs: Sequence[str]
class gemseo_scilab.py_scilab.ScilabPackage(script_dir_path)[source]

Bases: object

Interface to a scilab package.

Scilab python interface scans the sci files in a directory and generates python functions from them.

Constructor.

Parameters:

script_dir_path (str | Path) – The path to the directory to scan for .sci files.

Raises:

FileNotFoundError – If the script_dir_path does not exist.

RE_ARGS: Final[Pattern] = re.compile('\\(([^$].*?)\\)')
RE_FUNC: Final[Pattern] = re.compile('=([^$].*?)\\(')
RE_OUTS: Final[Pattern] = re.compile('\\[([^$].*?)]')