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

Commit f0be9cd

Browse files
author
Weina Ji
committed
fix binding and format
1 parent 9709793 commit f0be9cd

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

include/bbp/sonata/config.h

+6-4
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,9 @@ class SONATA_API SimulationConfig
557557
double sdPercent{};
558558
/// Whether this input represents a physical electrode. Default is false
559559
bool representsPhysicalElectrode = false;
560-
/// Signal skewness as a fraction in [0, 1] representing a value between the minimum and maximum skewness values
561-
/// compatible with the given signal mean and std dev. Default is 0.5.
560+
/// Signal skewness as a fraction in [0, 1] representing a value between the minimum and
561+
/// maximum skewness values compatible with the given signal mean and std dev. Default is
562+
/// 0.5.
562563
double relativeSkew{};
563564
};
564565

@@ -579,8 +580,9 @@ class SONATA_API SimulationConfig
579580
double sigma{};
580581
/// Whether this input represents a physical electrode. Default is false
581582
bool representsPhysicalElectrode = false;
582-
/// Signal skewness as a fraction in [0, 1] representing a value between the minimum and maximum skewness values
583-
/// compatible with the given signal mean and std dev. Default is 0.5.
583+
/// Signal skewness as a fraction in [0, 1] representing a value between the minimum and
584+
/// maximum skewness values compatible with the given signal mean and std dev. Default is
585+
/// 0.5.
584586
double relativeSkew{};
585587
};
586588

python/bindings.cpp

+6-5
Original file line numberDiff line numberDiff line change
@@ -946,9 +946,9 @@ PYBIND11_MODULE(_libsonata, m) {
946946
.def_readonly("represents_physical_electrode",
947947
&SimulationConfig::InputRelativeShotNoise::representsPhysicalElectrode,
948948
DOC_SIMULATIONCONFIG(InputRelativeShotNoise, representsPhysicalElectrode))
949-
.def_readlonly("relative_skew",
950-
&SimulationConfig::InputRelativeShotNoise::relativeSkew,
951-
DOC_SIMULATIONCONFIG(InputRelativeShotNoise, relativeSkew));
949+
.def_readonly("relative_skew",
950+
&SimulationConfig::InputRelativeShotNoise::relativeSkew,
951+
DOC_SIMULATIONCONFIG(InputRelativeShotNoise, relativeSkew));
952952

953953
py::class_<SimulationConfig::InputAbsoluteShotNoise, SimulationConfig::InputBase>(
954954
simConf, "AbsoluteShotNoise")
@@ -977,8 +977,9 @@ PYBIND11_MODULE(_libsonata, m) {
977977
&SimulationConfig::InputAbsoluteShotNoise::representsPhysicalElectrode,
978978
DOC_SIMULATIONCONFIG(InputAbsoluteShotNoise, representsPhysicalElectrode))
979979
.def_readonly("relative_skew",
980-
&SimulationConfig::InputAbsoluteShotNoise::relativeSkew,
981-
DOC_SIMULATIONCONFIG(InputAbsoluteShotNoise, relativeSkew));;
980+
&SimulationConfig::InputAbsoluteShotNoise::relativeSkew,
981+
DOC_SIMULATIONCONFIG(InputAbsoluteShotNoise, relativeSkew));
982+
;
982983

983984
py::class_<SimulationConfig::InputOrnsteinUhlenbeck, SimulationConfig::InputBase>(
984985
simConf, "OrnsteinUhlenbeck")

0 commit comments

Comments
 (0)