Skip to content

Commit

Permalink
Refactor: separate bluepy and sonata access objects into different mo…
Browse files Browse the repository at this point in the history
…dules (#135)

* refactor: separate bluepy circuit access def from sonata

* omit bluepycircuitaccess in coverage

* separate BluepySimulationConfig and SonataSimulationConfig into different modules

* omit bluepysimulationconfig from coverage

* Hide 'BlueConfig' type from allowed arguments

* remove unused import

* add from __future__ import annotations

* Fix type error in bluepysimulationconfig

* docstr fix

* use Protocol type in BluepyCircuitAccess

* add from __future__ import annotations

* cover Path type when assigning self._config

* revert changes to BluepySimulationAccess' init

* update copyrights
  • Loading branch information
anilbey authored Feb 23, 2024
1 parent a697386 commit 2686141
Show file tree
Hide file tree
Showing 45 changed files with 692 additions and 587 deletions.
2 changes: 1 addition & 1 deletion bluecellulab/cell/cell_dict.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2012-2023 Blue Brain Project / EPFL
# Copyright 2012-2024 Blue Brain Project / EPFL

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bluecellulab/cell/core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2012-2023 Blue Brain Project / EPFL
# Copyright 2012-2024 Blue Brain Project / EPFL

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bluecellulab/cell/injector.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2012-2023 Blue Brain Project / EPFL
# Copyright 2012-2024 Blue Brain Project / EPFL

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bluecellulab/cell/plotting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2012-2023 Blue Brain Project / EPFL
# Copyright 2012-2024 Blue Brain Project / EPFL

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bluecellulab/cell/random.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2012-2023 Blue Brain Project / EPFL
# Copyright 2012-2024 Blue Brain Project / EPFL

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bluecellulab/cell/section_distance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2012-2023 Blue Brain Project / EPFL
# Copyright 2012-2024 Blue Brain Project / EPFL

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bluecellulab/cell/serialized_sections.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2012-2023 Blue Brain Project / EPFL
# Copyright 2012-2024 Blue Brain Project / EPFL

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bluecellulab/cell/sonata_proxy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2012-2023 Blue Brain Project / EPFL
# Copyright 2012-2024 Blue Brain Project / EPFL

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bluecellulab/cell/stimuli_generator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2012-2023 Blue Brain Project / EPFL
# Copyright 2012-2024 Blue Brain Project / EPFL

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bluecellulab/cell/template.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2012-2023 Blue Brain Project / EPFL
# Copyright 2012-2024 Blue Brain Project / EPFL

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
3 changes: 3 additions & 0 deletions bluecellulab/circuit/circuit_access/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .definition import EmodelProperties, CircuitAccess, get_synapse_connection_parameters
from .bluepy_circuit_access import BluepyCircuitAccess
from .sonata_circuit_access import SonataCircuitAccess
Loading

0 comments on commit 2686141

Please sign in to comment.