pyrates

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: pyrates.backend.base.base_backend.BaseBackend

add_var_hist(lhs: str, delay: Union[pyrates.backend.computegraph.ComputeVar, float], state_idx: Union[int, tuple], **kwargs)[source]
add_var_update(lhs: pyrates.backend.computegraph.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: numpy.ndarray)[source]
get_var(v: pyrates.backend.computegraph.ComputeVar)[source]

pyrates.backend.julia.julia_funcs module

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

pyrates.backend.julia.julia_funcs.sigmoid_func(x)