#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
#####################################
#     ╔╗ ┬  ┬ ┬┌─┐  ╔╦╗┌─┐┌┬┐       #
#     ╠╩╗│  │ │├┤    ║║│ │ │        #
#     ╚═╝┴─┘└─┘└─┘  ═╩╝└─┘ ┴        #
#     ╔═╗┌─┐┌─┐┌┬┐┬ ┬┌─┐┬─┐┌─┐      #
#     ╚═╗│ │├┤  │ │││├─┤├┬┘├┤       #
#     ╚═╝└─┘└   ┴ └┴┘┴ ┴┴└─└─┘      #
#####################################
Author: Derek Blue
"""

# Imports
from __future__ import division

import pandas as pd
from dfgui import show as pdui
import sf_methods as sfm
from tqdm import tqdm as pbar

VEGA_MAG = 16.85
ctf = float('8.489e-16')
M335LC = sfm.load_data('./RAW/mkn335_xrt_uvot_lc.dat', headers=True)
x_col = M335LC['MJD'].tolist()
y_col = M335LC['M2_MAG'].tolist()
e_col = M335LC['M2_MG_ERR'].tolist()
M2_DATA = pd.DataFrame({'Time':x_col,
                        'Flux':y_col,
                        'Error':e_col})
M2_DATA = M2_DATA[M2_DATA['Flux'] > 0]
pdui(M2_DATA)
