Hi folks, the MIRI coronagraphy example (examples/example_miri_sky_1386.py) is a little outdated. It two following changes to work: replace the contrast module with analysistools, and remove the frame=None argument from ImageTools.remove_frames().
1:
Line 19: import ... contrast -> import ... analysistools
Line 144: Contrast = contrast.Contrast(Database) -> AnalysisTools = analysistools.AnalysisTools(Database)
Line 147: Contrast.raw_contrast(subdir='rawcon') -> AnalysisTools.raw_contrast(subdir='rawcon')
Line 147 also is missing a photometry table argument: AnalysisTools.raw_contrast(photometry_file, subdir='rawcon')
Hi folks, the MIRI coronagraphy example (examples/example_miri_sky_1386.py) is a little outdated. It two following changes to work: replace the
contrast
module withanalysistools
, and remove theframe=None
argument fromImageTools.remove_frames()
.1: Line 19:
import ... contrast
->import ... analysistools
Line 144:Contrast = contrast.Contrast(Database)
->AnalysisTools = analysistools.AnalysisTools(Database)
Line 147:Contrast.raw_contrast(subdir='rawcon')
->AnalysisTools.raw_contrast(subdir='rawcon')
Line 147 also is missing a photometry table argument:AnalysisTools.raw_contrast(photometry_file, subdir='rawcon')
2: Lines 72-75:
should be
I still get a NotImplementedError for the raw contrast calculation with MIRI data, but that is a bigger issue.