<commit_before>
"""
Created on Tue Aug  2 09:55:43 2016

@author: Miles
"""

import numpy as np
import matplotlib.pyplot as plt
import dave.fileio.mastio as mastio
import dave.fileio.tpf as tpf
import dave.fileio.kplrfits as kplrfits
import dave.misc.noise as noise
import gapfill
import pdb

def getData(epic, campaign):
    """Obtains the data for the star

    For a particular star, this obtains its pixel time series data cube as well
    as time points which may be bad due to thruster firings.


    Inputs:
    ----------
    epic
        (int) The k2 epic number for the desired star
    campaign
        (int) The k2 campaign for the desired star

    Returns:
    ------------
    cube
        (3d numpy array) The k2 pixel time series data for the star with 
        dimensions (time, number of rows per cadence, number of columns per 
        cadence)
    badIdxa
        (1d boolean numpy array) Boolean array with true corresponding to a bad<commit_msg>Added path to import of gapfil<commit_after>
"""
Created on Tue Aug  2 09:55:43 2016

@author: Miles
"""

import numpy as np
import matplotlib.pyplot as plt
import dave.fileio.mastio as mastio
import dave.fileio.tpf as tpf
import dave.fileio.kplrfits as kplrfits
import dave.misc.noise as noise
import dave.misc.gapfill
import pdb

def getData(epic, campaign):
    """Obtains the data for the star

    For a particular star, this obtains its pixel time series data cube as well
    as time points which may be bad due to thruster firings.


    Inputs:
    ----------
    epic
        (int) The k2 epic number for the desired star
    campaign
        (int) The k2 campaign for the desired star

    Returns:
    ------------
    cube
        (3d numpy array) The k2 pixel time series data for the star with 
        dimensions (time, number of rows per cadence, number of columns per 
        cadence)
    badIdxa
        (1d boolean numpy array) Boolean array with true corresponding to a bad
{'fraction_non_alphanumeric': 0.06928171166581763, 'fraction_numerical': 0.0163015792154865, 'mean_word_length': 2.597069597069597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '895778', 'n_tokens_mistral': 610, 'n_tokens_neox': 575, 'n_words': 268}