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
036aafce
Commit
036aafce
authored
Jul 27, 2018
by
Martin Reinecke
Browse files
fix typo
parent
fc4c6702
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/data_objects/distributed_do.py
View file @
036aafce
...
...
@@ -313,7 +313,7 @@ def from_object(object, dtype, copy, set_locked):
# algorithm.
def
from_random
(
random_type
,
shape
,
dtype
=
np
.
float64
,
**
kwargs
):
generator_function
=
getattr
(
Random
,
random_type
)
if
le
m
(
shape
)
==
0
:
if
le
n
(
shape
)
==
0
:
ldat
=
generator_function
(
dtype
=
dtype
,
shape
=
shape
,
**
kwargs
)
ldat
=
_comm
.
bcast
(
ldat
)
return
from_local_data
(
shape
,
ldat
,
distaxis
=-
1
)
...
...
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