Closed haguettaz closed 1 week ago
[!CAUTION]
Review failed
The pull request is closed.
The pull request introduces significant changes across multiple files in the rusty_snn
package. Key updates include modifications to the Cargo.toml
dependencies, enhancements to neuron and connection structures in JSON files, and the introduction of new modules for core functionalities like spike_train
, network
, neuron
, and connection
. Additionally, a new simulation framework is established with modules for managing simulation intervals and programs. Several existing files are deleted, indicating a restructuring of the codebase to streamline functionality and improve organization.
File | Change Summary |
---|---|
Cargo.toml |
Updated dependencies: serde , rand_distr , derivative , tempfile , and added tokio . |
network.json |
Added inputs property to neurons; removed firing_times from connections. |
src/core.rs |
Added modules: spike_train , network , neuron , connection ; defined constants REFRACTORY_PERIOD and FIRING_THRESHOLD . |
src/core/connection.rs |
Introduced Connection struct with methods for creation and error handling. |
src/core/network.rs |
Implemented Network struct for managing neurons and connections, with methods for simulation. |
src/core/neuron.rs |
Defined Input and Neuron structs with methods for handling neuron behavior and firing times. |
src/core/spike_train.rs |
Added SpikeTrain struct with error handling for refractory period violations. |
src/lib.rs |
Updated documentation and reorganized module exports. |
src/main.rs |
Enhanced main function with random network sampling and simulation capabilities. |
src/network.rs |
Modified module exports, removing connection and adding spike_train . |
src/network/_kernel.rs |
Deleted file containing Kernel struct and related methods. |
src/network/_tmp.rs |
Deleted file for managing neuron communication channels. |
src/network/connection.rs |
Deleted file with Connection struct and associated methods. |
src/network/error.rs |
Deleted file defining NetworkError enum. |
src/network/network.rs |
Deleted file implementing Network struct and its methods. |
src/network/neuron.rs |
Deleted file for Neuron struct and its functionalities. |
src/optimizer.rs |
Introduced new optimizer module. |
src/sampler.rs |
Added network and spike_train modules. |
src/sampler/network.rs |
Updated NetworkSampler struct with refined error handling and sampling methods. |
src/sampler/spike_train.rs |
Refactored documentation for PeriodicSpikeTrainSampler . |
src/simulator.rs |
Introduced simulator and comparator modules, with constants for simulation parameters. |
src/simulator/comparator.rs |
Updated error handling in Comparator struct and renamed error types. |
src/simulator/simulator.rs |
Added SimulationInterval and SimulationProgram structs with error handling. |
src/spike_train.rs |
Deleted file exporting comparator , sampler , and error modules. |
src/spike_train/error.rs |
Deleted SpikeTrainError enum. |
src/utils.rs |
Removed module declaration for types . |
src/lib.rs
and other files to provide better usage examples and best practices.Network
struct in src/network/network.rs
involve changes to methods that create random networks, which are directly related to the core functionality of the rusty_snn
package and its simulation capabilities, aligning with the updates made in the main PR.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
optimizer
module for optimization functionalities.simulator
andcomparator
modules for simulation capabilities.NetworkSampler
for generating random networks with specified parameters.TimeInterval
and updatedSimulationProgram
for structured simulation management.Bug Fixes
Comparator
for spike train compatibility and refractory period violations.Documentation
Refactor
Cargo.toml
for improved performance and compatibility.