Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
38
Issue boards
Milestones
Wiki
Code
Merge requests
25
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
3e1dbf66
Commit
3e1dbf66
authored
3 years ago
by
Eric Müller
Browse files
Options
Downloads
Patches
Plain Diff
Add py-pynn version 0.9.6 and update
parent
63a91392
No related branches found
Branches containing commit
No related tags found
1 merge request
!32
Add py-pynn version 0.9.6 and update
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
packages/py-pynn/package.py
+3
-0
3 additions, 0 deletions
packages/py-pynn/package.py
packages/py-pynn/pynn-0.9.6-python3.patch
+40
-0
40 additions, 0 deletions
packages/py-pynn/pynn-0.9.6-python3.patch
spack.yaml
+1
-1
1 addition, 1 deletion
spack.yaml
with
44 additions
and
1 deletion
packages/py-pynn/package.py
+
3
−
0
View file @
3e1dbf66
...
...
@@ -15,6 +15,7 @@ class PyPynn(PythonPackage):
pypi
=
"
PyNN/PyNN-0.8.3.tar.gz
"
git
=
"
https://github.com/NeuralEnsemble/PyNN.git
"
version
(
'
0.9.6
'
,
sha256
=
'
d85226800e30bc1692d3f84485c3fa20b921c2ab55f1201d0a3bf23432e16cd2
'
)
version
(
'
0.9.5
'
,
sha256
=
'
91af2126b639a6a795bfc2709ac49423278c4794b6d0da143908b9afcb415f80
'
)
version
(
'
0.9.1
'
,
sha256
=
'
bbc60fea3235427191feb2daa0e2fa07eb1c3946104c068ac8a2a0501263b0b1
'
)
version
(
'
0.8.3
'
,
sha256
=
'
9d59e6cffa4714f0c892ec6b32d1f5f8f75ba3a20d8635bac50c047aa6f2537e
'
)
...
...
@@ -34,3 +35,5 @@ class PyPynn(PythonPackage):
depends_on
(
'
py-lazyarray
'
,
type
=
(
'
build
'
,
'
run
'
),
when
=
"
@0.9.0:
"
)
depends_on
(
'
py-mock@1.0:
'
,
type
=
'
test
'
)
patch
(
'
pynn-0.9.6-python3.patch
'
,
when
=
'
@0.9.6 ^python@3:
'
)
This diff is collapsed.
Click to expand it.
packages/py-pynn/pynn-0.9.6-python3.patch
0 → 100644
+
40
−
0
View file @
3e1dbf66
diff --git a/pyNN/recording/files.py b/pyNN/recording/files.py
index 67c574ae..15404329 100644
--- a/pyNN/recording/files.py
+++ b/pyNN/recording/files.py
@@ -50,7 +50,7 @@
def savez(file, *args, **kwds):
import zipfile
from numpy.lib import format
- if isinstance(file, basestring):
+ if isinstance(file, str):
if not file.endswith('.npz'):
file = file + '.npz'
@@ -61,7 +61,7 @@
def savez(file, *args, **kwds):
raise ValueError("Cannot use un-named variables and keyword %s" % key)
namedict[key] = val
- zip = zipfile.ZipFile(file, mode="wb")
+ zip = zipfile.ZipFile(file, mode="w")
# Place to write temporary .npy files
# before storing them in the zip. We need to path this to have a working
@@ -220,7 +220,7 @@
class NumpyBinaryFile(BaseFile):
def write(self, data, metadata):
__doc__ = BaseFile.write.__doc__
self._check_open()
- metadata_array = numpy.array(metadata.items(), dtype=(str, float))
+ metadata_array = numpy.array(list(metadata.items()), dtype=object)
savez(self.fileobj, data=data, metadata=metadata_array)
def read(self):
@@ -234,7 +234,7 @@
class NumpyBinaryFile(BaseFile):
__doc__ = BaseFile.get_metadata.__doc__
self._check_open()
D = {}
- for name, value in numpy.load(self.fileobj)['metadata']:
+ for name, value in numpy.load(self.fileobj, allow_pickle=True)['metadata']:
try:
D[name] = eval(value)
except Exception:
This diff is collapsed.
Click to expand it.
spack.yaml
+
1
−
1
View file @
3e1dbf66
...
...
@@ -18,7 +18,7 @@ spack:
-
nest@3.0 +python +gsl +mpi %gcc@10.3.0
-
arbor +mpi ^python@3:3.9 %gcc@10.3.0
-
neuron +mpi %gcc@10.3.0
-
py-pynn@0.9.
5
%gcc@10.3.0
-
py-pynn@0.9.
6
%gcc@10.3.0
-
tvb-data %gcc@10.3.0
-
tvb-library ^binutils+ld+gold %gcc@10.3.0
-
tvb-storage ^binutils+ld+gold %gcc@10.3.0
...
...
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