update code to compatible with brainstate>=0.1.0 #21
+5,831
−5,997
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes significant refactoring and renaming of classes and methods in the
dendritex
module, along with some additional functionality. The most important changes include the renaming ofDendriticDynamics
toDendriteDynamics
, the removal of theDendriticDynamics
class, and the simplification of various methods and class definitions.Class and method renaming and refactoring:
dendritex/_base.py
: RenamedDendriticDynamics
toDendriteDynamics
and removed theDendriticDynamics
class. Refactored theDendriteDynamics
class to inherit frombst.mixin.Mixin
and simplified its methods.dendritex/_base.py
: UpdatedHHTypedNeuron
,IonChannel
, andMixIons
classes to inherit from the newDendriteDynamics
class and refactored their methods accordingly. [1] [2] [3]Simplification of method signatures and logic:
dendritex/_base.py
: Simplified the_format_elements
method in theContainer
class by removing support for tuple-typed components and only accepting dictionary-typed components.dendritex/_base.py
: Refactoredadd_elem
methods to remove support for tuple-typed elements and only accept dictionary-typed elements. [1] [2] [3]Additional functionality:
dendritex/_integrators.py
: Added new integration methodsmidpoint_step
,heun2_step
,ralston2_step
,heun3_step
,ssprk3_step
, andralston3_step
.These changes aim to improve the maintainability and readability of the codebase while adding new functionality to the
dendritex
module.