Skip to content

Commit

Permalink
SimulationConfig: remove amp_end from pulse input (#358)
Browse files Browse the repository at this point in the history
To follow the change in SONATA specs: BlueBrain/sonata-extension#56
  • Loading branch information
WeinaJi authored Jul 2, 2024
1 parent c1e6f17 commit bcdcaeb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.
2 changes: 0 additions & 2 deletions include/bbp/sonata/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,6 @@ class SONATA_API SimulationConfig
struct InputPulse: public InputBase {
/// The amount of current initially injected (nA)
double ampStart{};
/// The final current when a stimulus concludes (nA)
double ampEnd{};
/// The length of time each pulse lasts (ms)
double width{};
/// The frequency of pulse trains (Hz)
Expand Down
3 changes: 0 additions & 3 deletions python/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -844,9 +844,6 @@ PYBIND11_MODULE(_libsonata, m) {
.def_readonly("amp_start",
&SimulationConfig::InputPulse::ampStart,
DOC_SIMULATIONCONFIG(InputPulse, ampStart))
.def_readonly("amp_end",
&SimulationConfig::InputPulse::ampEnd,
DOC_SIMULATIONCONFIG(InputPulse, ampEnd))
.def_readonly("width",
&SimulationConfig::InputPulse::width,
DOC_SIMULATIONCONFIG(InputPulse, width))
Expand Down
30 changes: 14 additions & 16 deletions python/generated/docstrings.h
Original file line number Diff line number Diff line change
Expand Up @@ -794,14 +794,14 @@ static const char *__doc_bbp_sonata_SimulationConfig_InputAbsoluteShotNoise_rand
R"doc(Override the random seed to introduce correlations between cells,
default = None)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputAbsoluteShotNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputAbsoluteShotNoise_reversal = R"doc(Reversal potential for conductance injection in mV. Default is 0)doc";

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

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

static const char *__doc_bbp_sonata_SimulationConfig_InputAbsoluteShotNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputBase = R"doc()doc";

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

static const char *__doc_bbp_sonata_SimulationConfig_InputNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputNoise_variance =
R"doc(State var to track whether the value of injected noise current is mean
or mean_percent)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputOrnsteinUhlenbeck = R"doc()doc";

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

static const char *__doc_bbp_sonata_SimulationConfig_InputOrnsteinUhlenbeck_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputOrnsteinUhlenbeck_reversal = R"doc(Reversal potential for conductance injection in mV. Default is 0)doc";

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

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

static const char *__doc_bbp_sonata_SimulationConfig_InputOrnsteinUhlenbeck_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputPulse = R"doc()doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputPulse_ampEnd = R"doc(The final current when a stimulus concludes (nA))doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputPulse_ampStart = R"doc(The amount of current initially injected (nA))doc";

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

static const char *__doc_bbp_sonata_SimulationConfig_InputPulse_width = R"doc(The length of time each pulse lasts (ms))doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputPulse_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputPulse_width = R"doc(The length of time each pulse lasts (ms))doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeLinear = R"doc()doc";

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";
Expand All @@ -934,6 +932,8 @@ static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeOrnsteinUhlenb
R"doc(Override the random seed to introduce correlations between cells,
default = None)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeOrnsteinUhlenbeck_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeOrnsteinUhlenbeck_reversal = R"doc(Reversal potential for conductance injection in mV. Default is 0)doc";

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

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

static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeOrnsteinUhlenbeck_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeShotNoise = R"doc()doc";

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

static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeShotNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeShotNoise_reversal = R"doc(Reversal potential for conductance injection in mV. Default is 0)doc";

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

static const char *__doc_bbp_sonata_SimulationConfig_InputRelativeShotNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputSeclamp = R"doc()doc";

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

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

static const char *__doc_bbp_sonata_SimulationConfig_InputShotNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputShotNoise_reversal = R"doc(Reversal potential for conductance injection in mV. Default is 0)doc";

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

static const char *__doc_bbp_sonata_SimulationConfig_InputShotNoise_representsPhysicalElectrode = R"doc(Whether this input represents a physical electrode. Default is false)doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputSubthreshold = R"doc()doc";

static const char *__doc_bbp_sonata_SimulationConfig_InputSubthreshold_percentLess = R"doc(A percentage adjusted from 100 of a cell's threshold current)doc";
Expand Down
1 change: 0 additions & 1 deletion src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ SimulationConfig::Input parseInputModule(const nlohmann::json& valueIt,
parseMandatory(valueIt, "amp_start", debugStr, ret.ampStart);
parseMandatory(valueIt, "width", debugStr, ret.width);
parseMandatory(valueIt, "frequency", debugStr, ret.frequency);
parseOptional(valueIt, "amp_end", ret.ampEnd, {ret.ampStart});
parseOptional(valueIt,
"represents_physical_electrode",
ret.representsPhysicalElectrode,
Expand Down

0 comments on commit bcdcaeb

Please sign in to comment.