PyRates.pyrates.backend.julia pyrates.backend.julia module

Julia backend. Contains all julia-based internal function definitions and links to Julia functions. pyrates.backend.julia.julia_backend module

Wraps Julia such that its low-level functions can be used by PyRates to create and simulate a compute graph.

class pyrates.backend.julia.julia_backend.JuliaBackend(ops: Dict[str, str] | None = None, imports: List[str] | None = None, **kwargs)[source]

Bases: BaseBackend

add_var_hist(lhs: str, delay: ComputeVar | float, state_idx: int | tuple, **kwargs)[source]
add_var_update(lhs: ComputeVar, rhs: str, lhs_idx: str | None = None, rhs_shape: tuple | None = ())[source]
create_index_str(idx: str | int | tuple, separator: str = ',', apply: bool = True, **kwargs) Tuple[str, dict][source]
static expr_to_str(expr: str, args: tuple)[source]
generate_func(func_name: str, to_file: bool = True, **kwargs)[source]
generate_func_tail(rhs_var: str = 'dy')[source]
get_hist_func(y: ndarray)[source]
get_var(v: ComputeVar)[source] pyrates.backend.julia.julia_funcs module

Contains Julia function definitions that may be used for PyRates model equations.