Commit ce2c3409 authored by Carl Schaffer's avatar Carl Schaffer
Browse files

removing capability for alpha preview in BBI

parent c4f7112c
......@@ -7,12 +7,10 @@ Created by schaffer at 9/9/19
import argparse
import warnings
from glob import glob
from os.path import basename
from warnings import catch_warnings
import matplotlib as mpl
from pypeline import pipeline
from tqdm import tqdm
......@@ -49,22 +47,6 @@ def map_preview(fits_file, fn_out):
return fn_out
def alpha_preview(fits_file, fn_out):
"""Generate a preview of the estimated seeing quality over the different reconstruction subfields."""
datetime = FitsFile(fits_file).obs_time
format_keys = dict(
date=datetime.strftime("%Y%m%d"), time=datetime.strftime("%H%M%S")
log = glob(
if not log:
raise IOError(f"Could not find reconstruction results for {fits_file}")
speck = pipeline.speckle(log[0])
speck.plot_info_alpha(save=True, filename=fn_out)
return fn_out
def run_bbi_preview(cmd_line_args):
from ..interface.commandline_interface import add_arg_infiles
......@@ -83,7 +65,6 @@ def run_bbi_preview(cmd_line_args):
map_preview(infile, fn_out_reco)
loc_preview(infile, fn_out_loc)
alpha_preview(infile, fn_out_alpha)
# folder = dirname(infiles[0])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment