@@ -527,7 +527,7 @@ PYBIND11_MODULE(_libsonata, m) {
527
527
528
528
bindStorageClass<NodeStorage>(m, " NodeStorage" , " NodePopulation" );
529
529
530
- py::class_<NodeSets>(m, " NodeSets" , " " )
530
+ py::class_<NodeSets>(m, " NodeSets" , " NodeSets " )
531
531
.def (py::init<const std::string&>())
532
532
.def_static (" from_file" , [](py::object path) { return NodeSets::fromFile (py::str (path)); })
533
533
.def_property_readonly (" names" , &NodeSets::names, DOC_NODESETS (names))
@@ -589,11 +589,11 @@ PYBIND11_MODULE(_libsonata, m) {
589
589
.value (" complete" , CircuitConfig::ConfigStatus::complete)
590
590
.value (" partial" , CircuitConfig::ConfigStatus::partial);
591
591
592
- py::class_<CircuitConfig>(m, " CircuitConfig" , " " )
592
+ py::class_<CircuitConfig>(m, " CircuitConfig" , " Circuit Configuration " )
593
593
.def (py::init<const std::string&, const std::string&>())
594
594
.def_static (" from_file" ,
595
595
[](py::object path) { return CircuitConfig::fromFile (py::str (path)); })
596
- .def_property_readonly (" config_status" , &CircuitConfig::getCircuitConfigStatus)
596
+ .def_property_readonly (" config_status" , &CircuitConfig::getCircuitConfigStatus, " ibid " )
597
597
.def_property_readonly (" node_sets_path" , &CircuitConfig::getNodeSetsPath)
598
598
.def_property_readonly (" node_populations" , &CircuitConfig::listNodePopulations)
599
599
.def (" node_population" ,
@@ -613,7 +613,8 @@ PYBIND11_MODULE(_libsonata, m) {
613
613
.def (" edge_population_properties" , &CircuitConfig::getEdgePopulationProperties, " name" _a)
614
614
.def_property_readonly (" expanded_json" , &CircuitConfig::getExpandedJSON);
615
615
616
- py::class_<SimulationConfig::Run> run (m,
616
+ py::class_<SimulationConfig> simConf (m, " SimulationConfig" , " Simulation Configuration" );
617
+ py::class_<SimulationConfig::Run> run (simConf,
617
618
" Run" ,
618
619
" Stores parameters defining global simulation settings" );
619
620
run.def_readonly (" tstop" , &SimulationConfig::Run::tstop, DOC_SIMULATIONCONFIG (Run, tstop))
@@ -648,7 +649,9 @@ PYBIND11_MODULE(_libsonata, m) {
648
649
.value (" nicholson" , SimulationConfig::Run::IntegrationMethod::nicholson)
649
650
.value (" nicholson_ion" , SimulationConfig::Run::IntegrationMethod::nicholson_ion);
650
651
651
- py::class_<SimulationConfig::Output> output (m, " Output" , " Parameters of simulation output" );
652
+ py::class_<SimulationConfig::Output> output (simConf,
653
+ " Output" ,
654
+ " Parameters of simulation output" );
652
655
output
653
656
.def_readonly (" output_dir" ,
654
657
&SimulationConfig::Output::outputDir,
@@ -672,7 +675,7 @@ PYBIND11_MODULE(_libsonata, m) {
672
675
.value (" by_time" , SimulationConfig::Output::SpikesSortOrder::by_time);
673
676
674
677
py::class_<SimulationConfig::Conditions> conditions (
675
- m , " Conditions" , " Parameters defining global experimental conditions" );
678
+ simConf , " Conditions" , " Parameters defining global experimental conditions" );
676
679
conditions
677
680
.def_readonly (" celsius" ,
678
681
&SimulationConfig::Conditions::celsius,
@@ -705,7 +708,7 @@ PYBIND11_MODULE(_libsonata, m) {
705
708
.value (" soma" , SimulationConfig::Conditions::SpikeLocation::soma)
706
709
.value (" AIS" , SimulationConfig::Conditions::SpikeLocation::AIS);
707
710
708
- py::class_<SimulationConfig::ModificationBase> modificationBase (m , " ModificationBase" );
711
+ py::class_<SimulationConfig::ModificationBase> modificationBase (simConf , " ModificationBase" );
709
712
modificationBase
710
713
.def_readonly (" node_set" ,
711
714
&SimulationConfig::ModificationBase::nodeSet,
@@ -715,10 +718,10 @@ PYBIND11_MODULE(_libsonata, m) {
715
718
DOC_SIMULATIONCONFIG (ModificationBase, type));
716
719
717
720
py::class_<SimulationConfig::ModificationTTX, SimulationConfig::ModificationBase>(
718
- m , " ModificationTTX" );
721
+ simConf , " ModificationTTX" );
719
722
720
723
py::class_<SimulationConfig::ModificationConfigureAllSections,
721
- SimulationConfig::ModificationBase>(m , " ModificationConfigureAllSections" )
724
+ SimulationConfig::ModificationBase>(simConf , " ModificationConfigureAllSections" )
722
725
.def_readonly (" section_configure" ,
723
726
&SimulationConfig::ModificationConfigureAllSections::sectionConfigure,
724
727
DOC_SIMULATIONCONFIG (ModificationConfigureAllSections, sectionConfigure));
@@ -732,7 +735,7 @@ PYBIND11_MODULE(_libsonata, m) {
732
735
SimulationConfig::ModificationBase::ModificationType::ConfigureAllSections,
733
736
DOC_SIMULATIONCONFIG (ModificationBase, ModificationType, ConfigureAllSections));
734
737
735
- py::class_<SimulationConfig::Report> report (m , " Report" , " Parameters of a report" );
738
+ py::class_<SimulationConfig::Report> report (simConf , " Report" , " Parameters of a report" );
736
739
report
737
740
.def_readonly (" cells" ,
738
741
&SimulationConfig::Report::cells,
@@ -796,7 +799,7 @@ PYBIND11_MODULE(_libsonata, m) {
796
799
.value (" center" , SimulationConfig::Report::Compartments::center)
797
800
.value (" all" , SimulationConfig::Report::Compartments::all);
798
801
799
- py::class_<SimulationConfig::InputBase> inputBase (m , " InputBase" );
802
+ py::class_<SimulationConfig::InputBase> inputBase (simConf , " InputBase" );
800
803
inputBase
801
804
.def_readonly (" module" ,
802
805
&SimulationConfig::InputBase::module,
@@ -814,15 +817,15 @@ PYBIND11_MODULE(_libsonata, m) {
814
817
&SimulationConfig::InputBase::nodeSet,
815
818
DOC_SIMULATIONCONFIG (InputBase, nodeSet));
816
819
817
- py::class_<SimulationConfig::InputLinear, SimulationConfig::InputBase>(m , " Linear" )
820
+ py::class_<SimulationConfig::InputLinear, SimulationConfig::InputBase>(simConf , " Linear" )
818
821
.def_readonly (" amp_start" ,
819
822
&SimulationConfig::InputLinear::ampStart,
820
823
DOC_SIMULATIONCONFIG (InputLinear, ampStart))
821
824
.def_readonly (" amp_end" ,
822
825
&SimulationConfig::InputLinear::ampEnd,
823
826
DOC_SIMULATIONCONFIG (InputLinear, ampEnd));
824
827
825
- py::class_<SimulationConfig::InputRelativeLinear, SimulationConfig::InputBase>(m ,
828
+ py::class_<SimulationConfig::InputRelativeLinear, SimulationConfig::InputBase>(simConf ,
826
829
" RelativeLinear" )
827
830
.def_readonly (" percent_start" ,
828
831
&SimulationConfig::InputRelativeLinear::percentStart,
@@ -831,7 +834,7 @@ PYBIND11_MODULE(_libsonata, m) {
831
834
&SimulationConfig::InputRelativeLinear::percentEnd,
832
835
DOC_SIMULATIONCONFIG (InputRelativeLinear, percentEnd));
833
836
834
- py::class_<SimulationConfig::InputPulse, SimulationConfig::InputBase>(m , " Pulse" )
837
+ py::class_<SimulationConfig::InputPulse, SimulationConfig::InputBase>(simConf , " Pulse" )
835
838
.def_readonly (" amp_start" ,
836
839
&SimulationConfig::InputPulse::ampStart,
837
840
DOC_SIMULATIONCONFIG (InputPulse, ampStart))
@@ -845,15 +848,16 @@ PYBIND11_MODULE(_libsonata, m) {
845
848
&SimulationConfig::InputPulse::frequency,
846
849
DOC_SIMULATIONCONFIG (InputPulse, frequency));
847
850
848
- py::class_<SimulationConfig::InputSubthreshold, SimulationConfig::InputBase>(m, " Subthreshold" )
851
+ py::class_<SimulationConfig::InputSubthreshold, SimulationConfig::InputBase>(simConf,
852
+ " Subthreshold" )
849
853
.def_readonly (" percent_less" ,
850
854
&SimulationConfig::InputSubthreshold::percentLess,
851
855
DOC_SIMULATIONCONFIG (InputSubthreshold, percentLess));
852
856
853
857
py::class_<SimulationConfig::InputHyperpolarizing, SimulationConfig::InputBase>(
854
- m , " Hyperpolarizing" );
858
+ simConf , " Hyperpolarizing" );
855
859
856
- py::class_<SimulationConfig::InputSynapseReplay, SimulationConfig::InputBase>(m ,
860
+ py::class_<SimulationConfig::InputSynapseReplay, SimulationConfig::InputBase>(simConf ,
857
861
" SynapseReplay" )
858
862
.def_readonly (" spike_file" ,
859
863
&SimulationConfig::InputSynapseReplay::spikeFile,
@@ -862,15 +866,15 @@ PYBIND11_MODULE(_libsonata, m) {
862
866
&SimulationConfig::InputSynapseReplay::source,
863
867
DOC_SIMULATIONCONFIG (InputSynapseReplay, source));
864
868
865
- py::class_<SimulationConfig::InputSeclamp, SimulationConfig::InputBase>(m , " Seclamp" )
869
+ py::class_<SimulationConfig::InputSeclamp, SimulationConfig::InputBase>(simConf , " Seclamp" )
866
870
.def_readonly (" voltage" ,
867
871
&SimulationConfig::InputSeclamp::voltage,
868
872
DOC_SIMULATIONCONFIG (InputSeclamp, voltage))
869
873
.def_readonly (" series_resistance" ,
870
874
&SimulationConfig::InputSeclamp::seriesResistance,
871
875
DOC_SIMULATIONCONFIG (InputSeclamp, seriesResistance));
872
876
873
- py::class_<SimulationConfig::InputNoise, SimulationConfig::InputBase>(m , " Noise" )
877
+ py::class_<SimulationConfig::InputNoise, SimulationConfig::InputBase>(simConf , " Noise" )
874
878
.def_readonly (" mean" ,
875
879
&SimulationConfig::InputNoise::mean,
876
880
DOC_SIMULATIONCONFIG (InputNoise, mean))
@@ -881,7 +885,7 @@ PYBIND11_MODULE(_libsonata, m) {
881
885
&SimulationConfig::InputNoise::variance,
882
886
DOC_SIMULATIONCONFIG (InputNoise, variance));
883
887
884
- py::class_<SimulationConfig::InputShotNoise, SimulationConfig::InputBase>(m , " ShotNoise" )
888
+ py::class_<SimulationConfig::InputShotNoise, SimulationConfig::InputBase>(simConf , " ShotNoise" )
885
889
.def_readonly (" rise_time" ,
886
890
&SimulationConfig::InputShotNoise::riseTime,
887
891
DOC_SIMULATIONCONFIG (InputShotNoise, riseTime))
@@ -908,7 +912,7 @@ PYBIND11_MODULE(_libsonata, m) {
908
912
DOC_SIMULATIONCONFIG (InputShotNoise, ampVar));
909
913
910
914
py::class_<SimulationConfig::InputRelativeShotNoise, SimulationConfig::InputBase>(
911
- m , " RelativeShotNoise" )
915
+ simConf , " RelativeShotNoise" )
912
916
.def_readonly (" rise_time" ,
913
917
&SimulationConfig::InputRelativeShotNoise::riseTime,
914
918
DOC_SIMULATIONCONFIG (InputRelativeShotNoise, riseTime))
@@ -935,7 +939,7 @@ PYBIND11_MODULE(_libsonata, m) {
935
939
DOC_SIMULATIONCONFIG (InputRelativeShotNoise, meanPercent));
936
940
937
941
py::class_<SimulationConfig::InputAbsoluteShotNoise, SimulationConfig::InputBase>(
938
- m , " AbsoluteShotNoise" )
942
+ simConf , " AbsoluteShotNoise" )
939
943
.def_readonly (" rise_time" ,
940
944
&SimulationConfig::InputAbsoluteShotNoise::riseTime,
941
945
DOC_SIMULATIONCONFIG (InputAbsoluteShotNoise, riseTime))
@@ -962,7 +966,7 @@ PYBIND11_MODULE(_libsonata, m) {
962
966
DOC_SIMULATIONCONFIG (InputAbsoluteShotNoise, sigma));
963
967
964
968
py::class_<SimulationConfig::InputOrnsteinUhlenbeck, SimulationConfig::InputBase>(
965
- m , " OrnsteinUhlenbeck" )
969
+ simConf , " OrnsteinUhlenbeck" )
966
970
.def_readonly (" tau" ,
967
971
&SimulationConfig::InputOrnsteinUhlenbeck::tau,
968
972
DOC_SIMULATIONCONFIG (InputOrnsteinUhlenbeck, tau))
@@ -983,7 +987,7 @@ PYBIND11_MODULE(_libsonata, m) {
983
987
DOC_SIMULATIONCONFIG (InputOrnsteinUhlenbeck, sigma));
984
988
985
989
py::class_<SimulationConfig::InputRelativeOrnsteinUhlenbeck, SimulationConfig::InputBase>(
986
- m , " RelativeOrnsteinUhlenbeck" )
990
+ simConf , " RelativeOrnsteinUhlenbeck" )
987
991
.def_readonly (" tau" ,
988
992
&SimulationConfig::InputRelativeOrnsteinUhlenbeck::tau,
989
993
DOC_SIMULATIONCONFIG (InputRelativeOrnsteinUhlenbeck, tau))
@@ -1027,7 +1031,7 @@ PYBIND11_MODULE(_libsonata, m) {
1027
1031
.value (" voltage_clamp" , SimulationConfig::InputBase::InputType::voltage_clamp)
1028
1032
.value (" conductance" , SimulationConfig::InputBase::InputType::conductance);
1029
1033
1030
- py::class_<SimulationConfig::ConnectionOverride>(m ,
1034
+ py::class_<SimulationConfig::ConnectionOverride>(simConf ,
1031
1035
" ConnectionOverride" ,
1032
1036
" List of parameters of a connection" )
1033
1037
.def_readonly (" name" ,
@@ -1064,7 +1068,6 @@ PYBIND11_MODULE(_libsonata, m) {
1064
1068
&SimulationConfig::ConnectionOverride::neuromodulationStrength,
1065
1069
DOC_SIMULATIONCONFIG (ConnectionOverride, neuromodulationStrength));
1066
1070
1067
- py::class_<SimulationConfig> simConf (m, " SimulationConfig" , " " );
1068
1071
simConf.def (py::init<const std::string&, const std::string&>())
1069
1072
.def_static (
1070
1073
" from_file" ,
@@ -1113,7 +1116,7 @@ PYBIND11_MODULE(_libsonata, m) {
1113
1116
&SimulationConfig::getBetaFeatures,
1114
1117
DOC_SIMULATIONCONFIG (getBetaFeatures));
1115
1118
1116
- py::enum_<SimulationConfig::SimulatorType>(simConf, " SimulatorType" )
1119
+ py::enum_<SimulationConfig::SimulatorType>(simConf, " SimulatorType" , " SimulatorType Enum " )
1117
1120
.value (" NEURON" , SimulationConfig::SimulatorType::NEURON)
1118
1121
.value (" CORENEURON" , SimulationConfig::SimulatorType::CORENEURON);
1119
1122
0 commit comments