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

Commit a428941

Browse files
Ensure that some methods and functions are called with named parameters (#48)
1 parent efc39bd commit a428941

File tree

12 files changed

+25
-6
lines changed

12 files changed

+25
-6
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
Changelog
22
=========
33

4-
Version 0.11.5
4+
Version 0.12.0
55
--------------
66

7-
Bug Fixes
8-
~~~~~~~~~
7+
Breaking changes
8+
~~~~~~~~~~~~~~~~
99

10-
- Skip simulations with empty path in the simulation campaign configuration (fix regression in blueetl 0.8.0).
10+
- Ensure that some methods and functions are called with named parameters. In particular, the following public methods require named parameters:
1111

12+
- ``blueetl.analysis.run_from_file()``
13+
- ``blueetl.extract.report.ReportExtractor.from_simulations()``
14+
- ``blueetl.repository.Repository.__init__()``
15+
- ``blueetl.repository.FilteredRepository.__init__()``
1216

1317
Version 0.11.4
1418
--------------
@@ -17,6 +21,7 @@ Bug Fixes
1721
~~~~~~~~~
1822

1923
- Fix tests with libsonata 0.1.28.
24+
- Skip simulations with empty path in the simulation campaign configuration (fix regression in blueetl 0.8.0).
2025

2126

2227
Version 0.11.3

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ ignored-modules = ["bluepy"]
153153
# Maximum number of arguments for function / method.
154154
max-args = 8
155155
# Maximum number of positional arguments for function / method.
156-
max-positional-arguments = 10
156+
max-positional-arguments = 5
157157
# Maximum number of attributes for a class (see R0902).
158158
max-attributes = 40
159159
# Maximum number of boolean expressions in an if statement (see R0916).

src/blueetl/analysis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ def show(self):
327327

328328
def run_from_file(
329329
analysis_config_file: StrOrPath,
330+
*,
330331
seed: Optional[int] = 0,
331332
extract: bool = True,
332333
calculate: bool = True,

src/blueetl/apps/run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
@click.option("-i", "--interactive/--no-interactive", help="Start an interactive IPython shell.")
3434
@click.option("-v", "--verbose", count=True, help="-v for INFO, -vv for DEBUG")
3535
def run(
36+
*,
3637
analysis_config_file,
3738
seed,
3839
extract,

src/blueetl/extract/compartment_report.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class CompartmentReport(ReportExtractor):
3030
@classmethod
3131
def _load_values(
3232
cls,
33+
*,
3334
simulation: Simulation,
3435
population: Optional[str],
3536
gids,

src/blueetl/extract/neurons.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def _get_property_names(neuron_classes: dict[str, NeuronClassConfig]) -> list[st
3131

3232

3333
def _load_cells(
34+
*,
3435
circuit: Circuit,
3536
property_names: list[str],
3637
cells_cache: CellsCache,

src/blueetl/extract/report.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def calculate_window_slice(rec) -> WindowSlice:
6161
@abstractmethod
6262
def _load_values(
6363
cls,
64+
*,
6465
simulation: Simulation,
6566
population: Optional[str],
6667
gids,
@@ -83,6 +84,7 @@ def _load_values(
8384
@classmethod
8485
def from_simulations(
8586
cls: type[ReportExtractorT],
87+
*,
8688
simulations: Simulations,
8789
neurons: Neurons,
8890
windows: Windows,
@@ -122,6 +124,7 @@ def from_simulations(
122124

123125

124126
def _merge_filter_func(
127+
*,
125128
task_index: int,
126129
key: NamedTuple,
127130
df_list: list[pd.DataFrame],

src/blueetl/extract/soma_report.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class SomaReport(ReportExtractor):
2121
@classmethod
2222
def _load_values(
2323
cls,
24+
*,
2425
simulation: Simulation,
2526
population: Optional[str],
2627
gids,

src/blueetl/extract/spikes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def _assign_window(cls, df: pd.DataFrame, rec) -> pd.DataFrame:
3131
@classmethod
3232
def _load_values(
3333
cls,
34+
*,
3435
simulation: Simulation,
3536
population: Optional[str],
3637
gids,

src/blueetl/extract/windows.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def _load_dynamic_gids(
5656

5757

5858
def _load_dynamic_spikes(
59+
*,
5960
simulation: Simulation,
6061
population: Optional[str],
6162
gids: np.ndarray,
@@ -145,6 +146,7 @@ def _validate(cls, df: pd.DataFrame) -> None:
145146
@classmethod
146147
def _load_records_from_resolver(
147148
cls,
149+
*,
148150
name: str,
149151
win: str,
150152
simulation_id: int,

0 commit comments

Comments
 (0)