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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
resolve
Commits
00b6ebf3
Commit
00b6ebf3
authored
Aug 17, 2020
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup
parent
acf781d3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
demo/cygnusA.py
+0
-5
0 additions, 5 deletions
demo/cygnusA.py
resolve/__init__.py
+1
-1
1 addition, 1 deletion
resolve/__init__.py
resolve/plotter.py
+1
-0
1 addition, 0 deletions
resolve/plotter.py
with
2 additions
and
6 deletions
demo/cygnusA.py
+
0
−
5
View file @
00b6ebf3
...
@@ -16,7 +16,6 @@ def main():
...
@@ -16,7 +16,6 @@ def main():
nthreads
=
8
nthreads
=
8
rve
.
set_nthreads
(
nthreads
)
rve
.
set_nthreads
(
nthreads
)
rve
.
set_wstacking
(
False
)
rve
.
set_wstacking
(
False
)
# FIXME Add script that can open measurement sets and given some statistics
obs
=
rve
.
ms2observations
(
ms
,
'
DATA
'
)[
0
].
restrict_to_stokes_i
()
obs
=
rve
.
ms2observations
(
ms
,
'
DATA
'
)[
0
].
restrict_to_stokes_i
()
rve
.
set_epsilon
(
1
/
10
/
obs
.
max_snr
())
rve
.
set_epsilon
(
1
/
10
/
obs
.
max_snr
())
...
@@ -29,10 +28,6 @@ def main():
...
@@ -29,10 +28,6 @@ def main():
sky
=
rve
.
vla_beam
(
dom
,
np
.
mean
(
obs
.
freq
))
@
sky
sky
=
rve
.
vla_beam
(
dom
,
np
.
mean
(
obs
.
freq
))
@
sky
invcovop
=
ift
.
InverseGammaOperator
(
obs
.
vis
.
domain
,
1
,
1
/
obs
.
weight
).
reciprocal
().
ducktape
(
'
invcov
'
)
invcovop
=
ift
.
InverseGammaOperator
(
obs
.
vis
.
domain
,
1
,
1
/
obs
.
weight
).
reciprocal
().
ducktape
(
'
invcov
'
)
plotter
=
rve
.
Plotter
()
# plotter.add(invcovop)
plotter
.
add
(
sky
,
norm
=
LogNorm
())
# imaging_lh = rve.ImagingLikelihood(obs, sky)
# imaging_lh = rve.ImagingLikelihood(obs, sky)
# ham = ift.StandardHamiltonian(imaging_lh, ift.AbsDeltaEnergyController(0.5, 3, 2000))
# ham = ift.StandardHamiltonian(imaging_lh, ift.AbsDeltaEnergyController(0.5, 3, 2000))
# ham = ift.EnergyAdapter(0.1*ift.from_random(ham.domain), ham, want_metric=True)
# ham = ift.EnergyAdapter(0.1*ift.from_random(ham.domain), ham, want_metric=True)
...
...
...
...
This diff is collapsed.
Click to expand it.
resolve/__init__.py
+
1
−
1
View file @
00b6ebf3
...
@@ -6,6 +6,6 @@ from .likelihood import (CalibrationLikelihood, ImagingCalibrationLikelihood,
...
@@ -6,6 +6,6 @@ from .likelihood import (CalibrationLikelihood, ImagingCalibrationLikelihood,
ImagingLikelihoodVariableCovariance
)
ImagingLikelihoodVariableCovariance
)
from
.ms_import
import
ms2observations
from
.ms_import
import
ms2observations
from
.observation
import
Observation
,
tmin_tmax
,
unique_antennas
,
unique_times
from
.observation
import
Observation
,
tmin_tmax
,
unique_antennas
,
unique_times
from
.plotter
import
Plotter
#
from .plotter import Plotter
from
.points
import
PointInserter
from
.points
import
PointInserter
from
.primary_beam
import
vla_beam
from
.primary_beam
import
vla_beam
This diff is collapsed.
Click to expand it.
resolve/plotter.py
+
1
−
0
View file @
00b6ebf3
...
@@ -9,6 +9,7 @@ from .util import my_assert_isinstance
...
@@ -9,6 +9,7 @@ from .util import my_assert_isinstance
class
Plotter
:
class
Plotter
:
def
__init__
(
self
):
def
__init__
(
self
):
raise
NotImplementedError
self
.
_nifty
=
[]
self
.
_nifty
=
[]
self
.
_hists
=
[]
self
.
_hists
=
[]
...
...
...
...
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
sign in
to comment