# Path: pyLIMA/microlguess.py
# def initial_guess_PSPL(event):
# def initial_guess_FSPL(event):
# def initial_guess_DSPL(event):
# def differential_evolution_parameters_boundaries(model):
# def MCMC_parameters_initialization(parameter_key, parameters_dictionnary, parameters):


import numpy as np
import unittest.mock as mock
from pyLIMA import microlguess



def _create_event():
    event = mock.MagicMock()
    event.telescopes = [mock.MagicMock()]
    event.telescopes[0].name = 'Test'
    event.telescopes[0].lightcurve_magnitude = np.array([[0, 1, 1], [42, 6, 6],[43, 5, 1], [54, 8, 6]])
    event.telescopes[0].lightcurve_flux = np.array([[0, 1, 1], [42, 6, 6], [43, 5, 1], [54, 8, 6]])
    event.telescopes[0].gamma = 0.5
    event.telescopes[0].filter = 'I'
    return event


def test_initial_guess_PSPL():
    event = _create_event()


# Path: pyLIMA/microlguess.py
# def initial_guess_PSPL(event):
# def initial_guess_FSPL(event):
# def initial_guess_DSPL(event):
# def differential_evolution_parameters_boundaries(model):
# def MCMC_parameters_initialization(parameter_key, parameters_dictionnary, parameters):


# Path: pyLIMA/test/test_microlguess.py
import numpy as np
import unittest.mock as mock
from pyLIMA import microlguess




def _create_event():
    event = mock.MagicMock()
    event.telescopes = [mock.MagicMock()]
    event.telescopes[0].name = 'Test'
    event.telescopes[0].lightcurve_magnitude = np.array([[0, 1, 1], [42, 6, 6],[43, 5, 1], [54, 8, 6]])
    event.telescopes[0].lightcurve_flux = np.array([[0, 1, 1], [42, 6, 6], [43, 5, 1], [54, 8, 6]])
    event.telescopes[0].gamma = 0.5
    event.telescopes[0].filter = 'I'
    return event


def test_initial_guess_PSPL():
    event = _create_event()


    guesses = microlguess.initial_guess_PSPL(event)