Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit bcdcaeb

Browse files
author
Weina Ji
authored
SimulationConfig: remove amp_end from pulse input (#358)
To follow the change in SONATA specs: BlueBrain/sonata-extension#56
1 parent c1e6f17 commit bcdcaeb

File tree

4 files changed

+14
-22
lines changed

4 files changed

+14
-22
lines changed

include/bbp/sonata/config.h

-2
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,6 @@ class SONATA_API SimulationConfig
476476
struct InputPulse: public InputBase {
477477
/// The amount of current initially injected (nA)
478478
double ampStart{};
479-
/// The final current when a stimulus concludes (nA)
480-
double ampEnd{};
481479
/// The length of time each pulse lasts (ms)
482480
double width{};
483481
/// The frequency of pulse trains (Hz)

python/bindings.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -844,9 +844,6 @@ PYBIND11_MODULE(_libsonata, m) {
844844
.def_readonly("amp_start",
845845
&SimulationConfig::InputPulse::ampStart,
846846
DOC_SIMULATIONCONFIG(InputPulse, ampStart))
847-
.def_readonly("amp_end",
848-
&SimulationConfig::InputPulse::ampEnd,
849-
DOC_SIMULATIONCONFIG(InputPulse, ampEnd))
850847
.def_readonly("width",
851848
&SimulationConfig::InputPulse::width,
852849
DOC_SIMULATIONCONFIG(InputPulse, width))

python/generated/docstrings.h

+14-16
Original file line numberDiff line numberDiff line change
@@ -794,14 +794,14 @@ static const char *__doc_bbp_sonata_SimulationConfig_InputAbsoluteShotNoise_rand
794794
R"doc(Override the random seed to introduce correlations between cells,
795795
default = None)doc";
796796

797+
static const char *__doc_bbp_sonata_SimulationConfig_InputAbsoluteShotNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";
798+
797799
static const char *__doc_bbp_sonata_SimulationConfig_InputAbsoluteShotNoise_reversal = R"doc(Reversal potential for conductance injection in mV. Default is 0)doc";
798800

799801
static const char *__doc_bbp_sonata_SimulationConfig_InputAbsoluteShotNoise_riseTime = R"doc(The rise time of the bi-exponential shots (ms))doc";
800802

801803
static const char *__doc_bbp_sonata_SimulationConfig_InputAbsoluteShotNoise_sigma = R"doc(signal std dev in nA (current_clamp) or uS (conductance).)doc";
802804

803-
static const char *__doc_bbp_sonata_SimulationConfig_InputAbsoluteShotNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";
804-
805805
static const char *__doc_bbp_sonata_SimulationConfig_InputBase = R"doc()doc";
806806

807807
static const char *__doc_bbp_sonata_SimulationConfig_InputBase_InputType = R"doc()doc";
@@ -878,12 +878,12 @@ static const char *__doc_bbp_sonata_SimulationConfig_InputNoise_meanPercent =
878878
R"doc(The mean value of current to inject as a percentage of threshold
879879
current, default = None)doc";
880880

881+
static const char *__doc_bbp_sonata_SimulationConfig_InputNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";
882+
881883
static const char *__doc_bbp_sonata_SimulationConfig_InputNoise_variance =
882884
R"doc(State var to track whether the value of injected noise current is mean
883885
or mean_percent)doc";
884886

885-
static const char *__doc_bbp_sonata_SimulationConfig_InputNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";
886-
887887
static const char *__doc_bbp_sonata_SimulationConfig_InputOrnsteinUhlenbeck = R"doc()doc";
888888

889889
static const char *__doc_bbp_sonata_SimulationConfig_InputOrnsteinUhlenbeck_dt = R"doc(Timestep of generated signal in ms. Default is 0.25 ms)doc";
@@ -894,26 +894,24 @@ static const char *__doc_bbp_sonata_SimulationConfig_InputOrnsteinUhlenbeck_rand
894894
R"doc(Override the random seed to introduce correlations between cells,
895895
default = None)doc";
896896

897+
static const char *__doc_bbp_sonata_SimulationConfig_InputOrnsteinUhlenbeck_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";
898+
897899
static const char *__doc_bbp_sonata_SimulationConfig_InputOrnsteinUhlenbeck_reversal = R"doc(Reversal potential for conductance injection in mV. Default is 0)doc";
898900

899901
static const char *__doc_bbp_sonata_SimulationConfig_InputOrnsteinUhlenbeck_sigma = R"doc(Signal std dev in nA (current_clamp) or uS (conductance))doc";
900902

901903
static const char *__doc_bbp_sonata_SimulationConfig_InputOrnsteinUhlenbeck_tau = R"doc(Relaxation time constant in ms)doc";
902904

903-
static const char *__doc_bbp_sonata_SimulationConfig_InputOrnsteinUhlenbeck_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";
904-
905905
static const char *__doc_bbp_sonata_SimulationConfig_InputPulse = R"doc()doc";
906906

907-
static const char *__doc_bbp_sonata_SimulationConfig_InputPulse_ampEnd = R"doc(The final current when a stimulus concludes (nA))doc";
908-
909907
static const char *__doc_bbp_sonata_SimulationConfig_InputPulse_ampStart = R"doc(The amount of current initially injected (nA))doc";
910908

911909
static const char *__doc_bbp_sonata_SimulationConfig_InputPulse_frequency = R"doc(The frequency of pulse trains (Hz))doc";
912910

913-
static const char *__doc_bbp_sonata_SimulationConfig_InputPulse_width = R"doc(The length of time each pulse lasts (ms))doc";
914-
915911
static const char *__doc_bbp_sonata_SimulationConfig_InputPulse_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";
916912

913+
static const char *__doc_bbp_sonata_SimulationConfig_InputPulse_width = R"doc(The length of time each pulse lasts (ms))doc";
914+
917915
static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeLinear = R"doc()doc";
918916

919917
static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeLinear_percentEnd = R"doc(The percentage of a cell's threshold current to inject at the end)doc";
@@ -934,6 +932,8 @@ static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeOrnsteinUhlenb
934932
R"doc(Override the random seed to introduce correlations between cells,
935933
default = None)doc";
936934

935+
static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeOrnsteinUhlenbeck_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";
936+
937937
static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeOrnsteinUhlenbeck_reversal = R"doc(Reversal potential for conductance injection in mV. Default is 0)doc";
938938

939939
static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeOrnsteinUhlenbeck_sdPercent =
@@ -942,8 +942,6 @@ R"doc(Signal std dev as percentage of a cell’s threshold current
942942

943943
static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeOrnsteinUhlenbeck_tau = R"doc(Relaxation time constant in ms)doc";
944944

945-
static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeOrnsteinUhlenbeck_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";
946-
947945
static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeShotNoise = R"doc()doc";
948946

949947
static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeShotNoise_ampCv = R"doc(The coefficient of variation (sd/mean) of gamma-distributed amplitudes)doc";
@@ -960,6 +958,8 @@ static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeShotNoise_rand
960958
R"doc(Override the random seed to introduce correlations between cells,
961959
default = None)doc";
962960

961+
static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeShotNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";
962+
963963
static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeShotNoise_reversal = R"doc(Reversal potential for conductance injection in mV. Default is 0)doc";
964964

965965
static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeShotNoise_riseTime = R"doc(The rise time of the bi-exponential shots (ms))doc";
@@ -968,8 +968,6 @@ static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeShotNoise_sdPe
968968
R"doc(signal std dev as percentage of a cell’s threshold current
969969
(current_clamp) or inverse input resistance (conductance).)doc";
970970

971-
static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeShotNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";
972-
973971
static const char *__doc_bbp_sonata_SimulationConfig_InputSeclamp = R"doc()doc";
974972

975973
static const char *__doc_bbp_sonata_SimulationConfig_InputSeclamp_seriesResistance = R"doc(The series resistance (Mohm), default is 0.01 Mohm)doc";
@@ -996,12 +994,12 @@ default = None)doc";
996994

997995
static const char *__doc_bbp_sonata_SimulationConfig_InputShotNoise_rate = R"doc(Rate of Poisson events (Hz))doc";
998996

997+
static const char *__doc_bbp_sonata_SimulationConfig_InputShotNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";
998+
999999
static const char *__doc_bbp_sonata_SimulationConfig_InputShotNoise_reversal = R"doc(Reversal potential for conductance injection in mV. Default is 0)doc";
10001000

10011001
static const char *__doc_bbp_sonata_SimulationConfig_InputShotNoise_riseTime = R"doc(The rise time of the bi-exponential shots (ms))doc";
10021002

1003-
static const char *__doc_bbp_sonata_SimulationConfig_InputShotNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";
1004-
10051003
static const char *__doc_bbp_sonata_SimulationConfig_InputSubthreshold = R"doc()doc";
10061004

10071005
static const char *__doc_bbp_sonata_SimulationConfig_InputSubthreshold_percentLess = R"doc(A percentage adjusted from 100 of a cell's threshold current)doc";

src/config.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,6 @@ SimulationConfig::Input parseInputModule(const nlohmann::json& valueIt,
432432
parseMandatory(valueIt, "amp_start", debugStr, ret.ampStart);
433433
parseMandatory(valueIt, "width", debugStr, ret.width);
434434
parseMandatory(valueIt, "frequency", debugStr, ret.frequency);
435-
parseOptional(valueIt, "amp_end", ret.ampEnd, {ret.ampStart});
436435
parseOptional(valueIt,
437436
"represents_physical_electrode",
438437
ret.representsPhysicalElectrode,

0 commit comments

Comments
 (0)