Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
resolve
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
resolve
Commits
e4b6315c
Commit
e4b6315c
authored
1 year ago
by
Jakob Roth
Browse files
Options
Downloads
Patches
Plain Diff
test_response: tweaks
parent
fe64784f
No related branches found
No related tags found
1 merge request
!48
Polarization response
Pipeline
#207005
failed
1 year ago
Stage: build_docker
Stage: testing
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_response.py
+5
-8
5 additions, 8 deletions
test/test_response.py
with
5 additions
and
8 deletions
test/test_response.py
+
5
−
8
View file @
e4b6315c
...
@@ -15,8 +15,6 @@
...
@@ -15,8 +15,6 @@
# Copyright(C) 2022 Max-Planck-Society, Philipp Arras
# Copyright(C) 2022 Max-Planck-Society, Philipp Arras
# Author: Philipp Arras
# Author: Philipp Arras
from
os.path
import
join
import
nifty8
as
ift
import
nifty8
as
ift
import
numpy
as
np
import
numpy
as
np
import
pytest
import
pytest
...
@@ -24,10 +22,6 @@ import pytest
...
@@ -24,10 +22,6 @@ import pytest
import
resolve
as
rve
import
resolve
as
rve
import
resolve.re
as
jrve
import
resolve.re
as
jrve
from
.common
import
setup_function
,
teardown_function
import
configparser
pmp
=
pytest
.
mark
.
parametrize
pmp
=
pytest
.
mark
.
parametrize
np
.
seterr
(
all
=
"
raise
"
)
np
.
seterr
(
all
=
"
raise
"
)
...
@@ -84,11 +78,14 @@ def test_jax_response_consistency():
...
@@ -84,11 +78,14 @@ def test_jax_response_consistency():
obs
=
obs
.
to_double_precision
()
obs
=
obs
.
to_double_precision
()
sdom
=
dom
[
-
1
]
sdom
=
dom
[
-
1
]
radio_sky
=
ift
.
from_random
(
dom
)
fdom
=
rve
.
IRGSpace
([
np
.
mean
(
OBS
[
0
].
freq
)])
pdom
=
rve
.
PolarizationSpace
((
"
I
"
,
"
Q
"
,
"
U
"
,
"
V
"
))
pol_dom
=
rve
.
default_sky_domain
(
sdom
=
sdom
,
fdom
=
fdom
,
pdom
=
pdom
)
radio_sky
=
ift
.
from_random
(
pol_dom
)
radio_sky_arr
=
radio_sky
.
val
radio_sky_arr
=
radio_sky
.
val
R_old
=
rve
.
InterferometryResponse
(
R_old
=
rve
.
InterferometryResponse
(
obs
,
dom
,
do_wgridding
=
True
,
epsilon
=
1e-9
,
nthreads
=
1
obs
,
pol_
dom
,
do_wgridding
=
True
,
epsilon
=
1e-9
,
nthreads
=
1
)
)
sky_domain_dict
=
dict
(
sky_domain_dict
=
dict
(
npix_x
=
sdom
.
shape
[
0
],
npix_x
=
sdom
.
shape
[
0
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment