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
Merge requests
!48
Polarization response
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Polarization response
add_polarization_radio_response
into
master
Overview
2
Commits
13
Pipelines
12
Changes
1
Merged
Jakob Roth
requested to merge
add_polarization_radio_response
into
master
1 year ago
Overview
2
Commits
13
Pipelines
12
Changes
1
Expand
0
0
Merge request reports
Viewing commit
e4b6315c
Prev
Next
Show latest version
1 file
+
5
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
e4b6315c
test_response: tweaks
· e4b6315c
Jakob Roth
authored
1 year ago
test/test_response.py
+
5
−
8
Options
@@ -15,8 +15,6 @@
# Copyright(C) 2022 Max-Planck-Society, Philipp Arras
# Author: Philipp Arras
from
os.path
import
join
import
nifty8
as
ift
import
numpy
as
np
import
pytest
@@ -24,10 +22,6 @@ import pytest
import
resolve
as
rve
import
resolve.re
as
jrve
from
.common
import
setup_function
,
teardown_function
import
configparser
pmp
=
pytest
.
mark
.
parametrize
np
.
seterr
(
all
=
"
raise
"
)
@@ -84,11 +78,14 @@ def test_jax_response_consistency():
obs
=
obs
.
to_double_precision
()
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
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
(
npix_x
=
sdom
.
shape
[
0
],
Loading