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
vlbi_resolve
Commits
1b8baa3c
Commit
1b8baa3c
authored
Jan 21, 2021
by
Philipp Frank
Browse files
update test
parent
03ab0901
Pipeline
#91867
passed with stages
in 14 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test.py
View file @
1b8baa3c
...
...
@@ -47,8 +47,8 @@ d3 = {
'ant1'
:
np
.
array
([
0
,
0
,
0
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
2
]),
'ant2'
:
np
.
array
([
1
,
2
,
3
,
2
,
3
,
1
,
2
,
3
,
2
,
3
,
3
])
}
ds
=
[
vlbi
.
read_data
(
'data/
m87
'
,
dd
,
ff
,
aa
)
for
dd
,
ff
,
aa
in
product
(
vlbi
.
DAYS
,
vlbi
.
FREQS
,
avg_ints
)]
ds
.
extend
([
vlbi
.
combined_data
(
'data/
m87
'
,
vlbi
.
FREQS
,
aa
)
for
aa
in
avg_ints
])
ds
=
[
vlbi
.
read_data
(
'data/
ehtcrescent
'
,
dd
,
ff
,
aa
)
for
dd
,
ff
,
aa
in
product
(
vlbi
.
DAYS
,
vlbi
.
FREQS
,
avg_ints
)]
ds
.
extend
([
vlbi
.
combined_data
(
'data/
ehtcrescent
'
,
vlbi
.
FREQS
,
aa
)
for
aa
in
avg_ints
])
ds
.
append
(
d3
)
seeds
=
[
189
,
4938
]
...
...
@@ -252,8 +252,8 @@ def test_skyscaling_invariance(d):
cph
=
vlbi
.
Visibilities2ClosurePhases
(
d
)[
0
]
ca
=
vlbi
.
Visibilities2ClosureAmplitudes
(
d
)[
0
]
vis
=
ift
.
from_random
(
cph
.
domain
,
'normal'
,
dtype
=
np
.
complex128
)
ift
.
extra
.
assert_allclose
(
cph
(
vis
),
cph
(
0.78
*
vis
),
0
,
1e-1
1
)
ift
.
extra
.
assert_allclose
(
ca
(
vis
),
ca
(
0.878
*
vis
),
0
,
1e-1
1
)
ift
.
extra
.
assert_allclose
(
cph
(
vis
),
cph
(
0.78
*
vis
),
0
,
1e-1
0
)
ift
.
extra
.
assert_allclose
(
ca
(
vis
),
ca
(
0.878
*
vis
),
0
,
1e-1
0
)
@
pmp
(
'ddtype'
,
dtypes
)
...
...
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