-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* import CircuitNodeId, CircuitEdgeId from utils * move IDS_DTYPE, CircuitNodeId, CircuitEdgeId to circuit_ids_types.py * move circuit_validation.Error -> exceptions.BluepySnapValidationError * make warning and fatal classmethods of BluepySnapValidationError
- Loading branch information
1 parent
95fa737
commit 4091868
Showing
27 changed files
with
273 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright (c) 2023, EPFL/Blue Brain Project | ||
|
||
# This file is part of BlueBrain SNAP library <https://github.com/BlueBrain/snap> | ||
|
||
# This library is free software; you can redistribute it and/or modify it under | ||
# the terms of the GNU Lesser General Public License version 3.0 as published | ||
# by the Free Software Foundation. | ||
|
||
# This library is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
# details. | ||
|
||
# You should have received a copy of the GNU Lesser General Public License | ||
# along with this library; if not, write to the Free Software Foundation, Inc., | ||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
|
||
"""CircuitIds types.""" | ||
|
||
from collections import namedtuple | ||
|
||
import numpy as np | ||
|
||
# dtypes for the different node and edge ids. We are using np.int64 to avoid the infamous | ||
# https://github.com/numpy/numpy/issues/15084 numpy problem. This type needs to be used for | ||
# all returned node or edge ids. | ||
IDS_DTYPE = np.int64 | ||
|
||
CircuitNodeId = namedtuple("CircuitNodeId", ("population", "id")) | ||
CircuitEdgeId = namedtuple("CircuitEdgeId", ("population", "id")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.