Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
30
Issue boards
Milestones
Wiki
Code
Merge requests
30
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
ebrains-spack-builds
Commits
33bc2aef
Commit
33bc2aef
authored
1 year ago
by
Eleni Mathioulaki
Browse files
Options
Downloads
Patches
Plain Diff
py-pynn: add patch for numpy@1:24:
parent
d86c095c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!492
Draft: py-pynn: add patch for numpy@1.24:
Pipeline
#27572
failed with stage
in 1 hour, 53 minutes, and 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/py-pynn/package.py
+1
-0
1 addition, 0 deletions
packages/py-pynn/package.py
packages/py-pynn/pynn-numpy-1.24.patch
+15
-0
15 additions, 0 deletions
packages/py-pynn/pynn-numpy-1.24.patch
with
16 additions
and
0 deletions
packages/py-pynn/package.py
+
1
−
0
View file @
33bc2aef
...
...
@@ -61,6 +61,7 @@ class PyPynn(PythonPackage):
depends_on
(
"
py-pytest
"
,
type
=
'
test
'
,
when
=
"
@0.11.0:
"
)
patch
(
'
pynn-0.9.6-python3.patch
'
,
when
=
'
@0.9.6 ^python@3:
'
)
patch
(
'
pynn-numpy-1.24.patch
'
,
when
=
'
@0.9.6: ^py-numpy@1.24:
'
)
# neuroml and nineml are optional dependencies. Leave out of import_modules to avoid errors in tests
skip_modules
=
[
'
pyNN.neuroml
'
,
'
pyNN.nineml
'
,
'
pyNN.hardware
'
]
...
...
This diff is collapsed.
Click to expand it.
packages/py-pynn/pynn-numpy-1.24.patch
0 → 100644
+
15
−
0
View file @
33bc2aef
diff --git a/pyNN/brian2/projections.py b/pyNN/brian2/projections.py
index 9fad3b9e..89f98dcf 100644
--- a/pyNN/brian2/projections.py
+++ b/pyNN/brian2/projections.py
@@ -169,8 +169,8 @@
class Projection(common.Projection):
if isinstance(self.pre, common.Assembly):
boundaries = np.cumsum([0] + [p.size for p in self.pre.populations])
assert indices.max() < boundaries[-1]
- partitions = np.split(indices, np.searchsorted(
- indices, boundaries[1:-1])) - boundaries[:-1]
+ partitions = np.array(np.split(indices, np.searchsorted(
+ indices, boundaries[1:-1])), dtype=object) - boundaries[:-1]
for i_group, local_indices in enumerate(partitions):
if isinstance(self.pre.populations[i_group], common.PopulationView):
partitions[i_group] = self.pre.populations[i_group].index_in_grandparent(
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment