Skip to main content

sc_neurocore_engine/bindings/synapses/
mod.rs

1// SPDX-License-Identifier: AGPL-3.0-or-later
2// Commercial license available
3// © Concepts 1996–2026 Miroslav Šotek. All rights reserved.
4// © Code 2020–2026 Miroslav Šotek. All rights reserved.
5// ORCID: 0009-0009-3560-0851
6// Contact: www.anulum.li | protoscience@anulum.li
7// SC-NeuroCore — Synapse PyO3 binding composition
8
9use pyo3::prelude::*;
10
11mod dopamine_stdp_synapse;
12mod short_term_plasticity_synapse;
13mod triplet_stdp_synapse;
14
15pub use dopamine_stdp_synapse::PyDopamineStdpSynapse;
16pub use short_term_plasticity_synapse::PyShortTermPlasticitySynapse;
17pub use triplet_stdp_synapse::PyTripletStdpSynapse;
18
19/// Register the three model-owned synapse classes in stable ABI order.
20pub(crate) fn register(module: &Bound<'_, PyModule>) -> PyResult<()> {
21    triplet_stdp_synapse::register(module)?;
22    short_term_plasticity_synapse::register(module)?;
23    dopamine_stdp_synapse::register(module)?;
24    Ok(())
25}