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: Optional[Dict[str, str]] = None, imports: Optional[List[str]] = None, **kwargs)[source]

Bases: BaseBackend

add_var_hist(lhs: str, delay: Union[ComputeVar, float], state_idx: Union[int, tuple], **kwargs)[source]
add_var_update(lhs: ComputeVar, rhs: str, lhs_idx: Optional[str] = None, rhs_shape: Optional[tuple] = ())[source]
create_index_str(idx: Union[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.