Skip to content
GitLab
Menu
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
f1a42ebc
Commit
f1a42ebc
authored
Sep 16, 2017
by
Martin Reinecke
Browse files
try to bisect the problem
parent
754da5e2
Pipeline
#18300
passed with stage
in 5 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty2go/spaces/rg_space/rg_space.py
View file @
f1a42ebc
...
@@ -107,8 +107,7 @@ class RGSpace(Space):
...
@@ -107,8 +107,7 @@ class RGSpace(Space):
@
property
@
property
def
total_volume
(
self
):
def
total_volume
(
self
):
return
self
.
_dim
*
reduce
(
lambda
x
,
y
:
x
*
y
,
self
.
distances
)
return
self
.
dim
*
self
.
_wgt
#return self.dim * self._wgt
def
copy
(
self
):
def
copy
(
self
):
return
self
.
__class__
(
shape
=
self
.
shape
,
return
self
.
__class__
(
shape
=
self
.
shape
,
...
@@ -116,12 +115,10 @@ class RGSpace(Space):
...
@@ -116,12 +115,10 @@ class RGSpace(Space):
harmonic
=
self
.
harmonic
)
harmonic
=
self
.
harmonic
)
def
scalar_weight
(
self
):
def
scalar_weight
(
self
):
return
reduce
(
lambda
x
,
y
:
x
*
y
,
self
.
distances
)
return
self
.
_wgt
#return self._wgt
def
weight
(
self
):
def
weight
(
self
):
return
reduce
(
lambda
x
,
y
:
x
*
y
,
self
.
distances
)
return
self
.
_wgt
#return self._wgt
def
get_distance_array
(
self
):
def
get_distance_array
(
self
):
""" Calculates an n-dimensional array with its entries being the
""" Calculates an n-dimensional array with its entries being the
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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