Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
8d2916d7
Commit
8d2916d7
authored
Aug 15, 2017
by
Theo Steininger
Browse files
RGSpace now forbids zerocentered axes with odd length.
parent
1cb7af7a
Pipeline
#16545
failed with stages
in 5 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/spaces/rg_space/rg_space.py
View file @
8d2916d7
...
...
@@ -330,6 +330,8 @@ class RGSpace(Space):
def
_parse_zerocenter
(
self
,
zerocenter
):
temp
=
np
.
empty
(
len
(
self
.
shape
),
dtype
=
bool
)
temp
[:]
=
zerocenter
if
np
.
any
(
np
.
logical_and
(
temp
,
np
.
array
(
self
.
shape
)
%
2
)):
raise
ValueError
(
"All zerocentered axis must have even length!"
)
return
tuple
(
temp
)
# ---Serialization---
...
...
Theo Steininger
@theos
mentioned in issue
#174 (closed)
·
Aug 15, 2017
mentioned in issue
#174 (closed)
mentioned in issue #174
Toggle commit list
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment