Skip to content

Commit

Permalink
Fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chr-pok committed Oct 29, 2024
1 parent 272cf60 commit fc26f8a
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Blue Brain Project/EPFL

"""Connectome extraction module."""

import os

import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Blue Brain Project/EPFL

"""Connection removal module."""

import os

import numpy as np
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Blue Brain Project/EPFL

"""Connectome (re)wiring module (general-purpose)."""

import libsonata
import neurom as nm
import numpy as np
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Blue Brain Project/EPFL

"""Connectome wiring module (specialized)."""

from datetime import datetime, timedelta

import libsonata
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Blue Brain Project/EPFL

"""Null manipulation module - does not do anything."""

from connectome_manipulator import log
from connectome_manipulator.connectome_manipulation.manipulation import Manipulation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Blue Brain Project/EPFL

"""Module for alteration of synapse property values."""

import numpy as np

from connectome_manipulator import log, profiler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Blue Brain Project/EPFL

"""Synapse removal module."""

import numpy as np

from scipy.sparse import csc_matrix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Blue Brain Project/EPFL

"""Synapse subsampling module."""

import numpy as np

from connectome_manipulator import log, profiler
Expand Down
3 changes: 1 addition & 2 deletions connectome_manipulator/model_building/conn_prob_adj.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def extract(circuit, sel_src=None, sel_dest=None, edges_popul_name=None, CV_dict


def build(adj_mat, src_node_ids, tgt_node_ids, inverted=False, **_):
"""Builds a (deterministic) connection probability model of type ``ConnProbAdjModel`` from an adjacency matrix
(i.e., returning probabilities 0.0 or 1.0 only).
"""Builds a (deterministic) connection probability model of type ``ConnProbAdjModel`` from an adjacency matrix (i.e., returning probabilities 0.0 or 1.0 only).
Args:
adj_mat (scipy.sparse.csc_matrix): Sparse adjacency matrix with boolean entries (i.e., True...connection, False...no connection)
Expand Down
1 change: 0 additions & 1 deletion connectome_manipulator/model_building/model_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,6 @@ def draw_cov(self, src_type, tgt_type, size=1):
(As in Chindemi et al. (2022) "A calcium-based plasticity model for
predicting long-term potentiation and depression in the neocortex")
"""

if self.prop_cov_mat is None:
log.warning("No correlated properties!")
return np.zeros((size, 0))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ def plot(out_dir, nrn_ids, nrn_pos, nrn_lay, model, **_): # pragma: no cover
Note:
Only mappings to 2D or 3D space are supported for visualization.
"""

nrn_pos_model = model.apply(gids=nrn_ids)

# Cell positions in 3D original vs. mapped space
Expand Down

0 comments on commit fc26f8a

Please sign in to comment.