# Path: pyLIMA/telescopes.py
# PYLIMA_LIGHTCURVE_MAGNITUDE_CONVENTION = ['time', 'mag', 'err_mag']
# PYLIMA_LIGHTCURVE_FLUX_CONVENTION = ['time', 'flux', 'err_flux']
# class Telescope(object):
#     def __init__(self, name='NDG', camera_filter='I', light_curve_magnitude=None,
#                  light_curve_magnitude_dictionnary=None,
#                  light_curve_flux=None, light_curve_flux_dictionnary=None,
#                  reference_flux=0.0, clean_the_lightcurve='Yes',
#                  location = 'Earth', spacecraft_name=None):
#     def arrange_the_lightcurve_columns(self, choice):
#     def n_data(self, choice='magnitude'):
#     def find_gamma(self, star):
#     def compute_parallax(self, event, parallax):
#     def clean_data_magnitude(self):
#     def clean_data_flux(self):
#     def lightcurve_in_flux(self):
#     def lightcurve_in_magnitude(self):
#     def hidden(self):
# 
# Path: pyLIMA/stars.py
# CLARET_PATH = template
# class Star(object):
#     def __init__(self):
#     def define_claret_filter_tables(self):
#     def find_gamma(self, filter):


import os.path
import numpy as np
from pyLIMA import telescopes
from pyLIMA import stars

    assert telescope.location == 'Earth'
    assert len(telescope.lightcurve_flux) == 0
    assert telescope.altitude == 0.0
    assert telescope.longitude == 0.57
    assert telescope.latitude == 49.49
    assert telescope.gamma == 0.0
    assert len(telescope.deltas_positions) == 0

    telescope2 = telescopes.Telescope('Goleta', 'sdss_i',
                                      light_curve_magnitude=np.array([[0, 1, 0.1], [3, 4, 0.1]]))

    assert telescope2.name == 'Goleta'
    assert telescope2.filter == 'sdss_i'
    assert telescope2.lightcurve_magnitude.shape == (2, 3)
    assert telescope2.lightcurve_flux.shape == (2, 3)
    telescope2.location = 'Space'
    telescope2.altitude = 1.0
    telescope2.longitude = -150.0
    telescope2.latitude = 35.0
    telescope2.gamma = 0.6

    assert telescope2.location == 'Space'
    assert telescope2.altitude == 1.0
    assert telescope2.longitude == -150.0
    assert telescope2.latitude == 35.0
    assert telescope2.gamma == 0.6


def test_clean_data_already_clean():

# Path: pyLIMA/telescopes.py
# PYLIMA_LIGHTCURVE_MAGNITUDE_CONVENTION = ['time', 'mag', 'err_mag']
# PYLIMA_LIGHTCURVE_FLUX_CONVENTION = ['time', 'flux', 'err_flux']
# class Telescope(object):
#     def __init__(self, name='NDG', camera_filter='I', light_curve_magnitude=None,
#                  light_curve_magnitude_dictionnary=None,
#                  light_curve_flux=None, light_curve_flux_dictionnary=None,
#                  reference_flux=0.0, clean_the_lightcurve='Yes',
#                  location = 'Earth', spacecraft_name=None):
#     def arrange_the_lightcurve_columns(self, choice):
#     def n_data(self, choice='magnitude'):
#     def find_gamma(self, star):
#     def compute_parallax(self, event, parallax):
#     def clean_data_magnitude(self):
#     def clean_data_flux(self):
#     def lightcurve_in_flux(self):
#     def lightcurve_in_magnitude(self):
#     def hidden(self):
# 
# Path: pyLIMA/stars.py
# CLARET_PATH = template
# class Star(object):
#     def __init__(self):
#     def define_claret_filter_tables(self):
#     def find_gamma(self, filter):


# Path: pyLIMA/test/test_telescopes.py
import os.path
import numpy as np
from pyLIMA import telescopes
from pyLIMA import stars


    assert telescope.location == 'Earth'
    assert len(telescope.lightcurve_flux) == 0
    assert telescope.altitude == 0.0
    assert telescope.longitude == 0.57
    assert telescope.latitude == 49.49
    assert telescope.gamma == 0.0
    assert len(telescope.deltas_positions) == 0

    telescope2 = telescopes.Telescope('Goleta', 'sdss_i',
                                      light_curve_magnitude=np.array([[0, 1, 0.1], [3, 4, 0.1]]))

    assert telescope2.name == 'Goleta'
    assert telescope2.filter == 'sdss_i'
    assert telescope2.lightcurve_magnitude.shape == (2, 3)
    assert telescope2.lightcurve_flux.shape == (2, 3)
    telescope2.location = 'Space'
    telescope2.altitude = 1.0
    telescope2.longitude = -150.0
    telescope2.latitude = 35.0
    telescope2.gamma = 0.6

    assert telescope2.location == 'Space'
    assert telescope2.altitude == 1.0
    assert telescope2.longitude == -150.0
    assert telescope2.latitude == 35.0
    assert telescope2.gamma == 0.6


def test_clean_data_already_clean():

    telescope = telescopes.Telescope(