Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
nam
ProxPython
Commits
0ec3c752
Commit
0ec3c752
authored
Nov 05, 2019
by
alexander.dornheim
Browse files
Fixed bug just introduced into CDP_processor
parent
96008a82
Changes
1
Hide whitespace changes
Inline
Side-by-side
proxtoolbox/Problems/Phase/CDP_processor.py
View file @
0ec3c752
...
...
@@ -32,7 +32,7 @@ def CDP_processor(config):
elif
n1
==
1
:
Masks
=
np
.
random
.
choice
(
np
.
array
([
1j
,
-
1j
,
1
,
-
1
]),(
L
,
n2
))
else
:
np
.
random
.
choice
(
np
.
array
([
1j
,
-
1j
,
1
,
-
1
]),(
n1
,
n2
,
L
))
Masks
=
np
.
random
.
choice
(
np
.
array
([
1j
,
-
1j
,
1
,
-
1
]),(
n1
,
n2
,
L
))
# Sample magnitudes and make masks
temp
=
random_sample
(
Masks
.
shape
)
#works like rand but accepts tuple as argument
...
...
Write
Preview
Markdown
is supported
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