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
ce83360e
Commit
ce83360e
authored
3 years ago
by
Simon Ding
Browse files
Options
Downloads
Patches
Plain Diff
Allow frequency domain to be defined on log scale
parent
8f194d63
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!29
Allow frequency domain to be defined on log scale
Pipeline
#109967
passed
3 years ago
Stage: build_docker
Stage: testing
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resolve/response.py
+6
-2
6 additions, 2 deletions
resolve/response.py
with
6 additions
and
2 deletions
resolve/response.py
+
6
−
2
View file @
ce83360e
...
...
@@ -111,7 +111,7 @@ class MfResponse(ift.LinearOperator):
Contains the the :class:`nifty8.RGSpace` for the positions.
"""
def
__init__
(
self
,
observation
,
frequency_domain
,
position_domain
):
def
__init__
(
self
,
observation
,
frequency_domain
,
position_domain
,
log_freq
=
False
):
my_assert_isinstance
(
observation
,
Observation
)
# FIXME Add polarization support
my_assert
(
observation
.
npol
in
[
1
,
2
])
...
...
@@ -123,7 +123,11 @@ class MfResponse(ift.LinearOperator):
self
.
_target
=
observation
.
vis
.
domain
self
.
_capability
=
self
.
TIMES
|
self
.
ADJOINT_TIMES
data_freq
=
observation
.
freq
if
log_freq
:
data_freq
=
np
.
log
(
observation
.
freq
/
observation
.
freq
.
mean
())
else
:
data_freq
=
observation
.
freq
my_assert
(
np
.
all
(
np
.
diff
(
data_freq
)
>
0
))
sky_freq
=
np
.
array
(
frequency_domain
.
coordinates
)
band_indices
=
self
.
band_indices
(
sky_freq
,
data_freq
)
...
...
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