Skip to content

Commit

Permalink
Ensure space base models are within the observed time**3
Browse files Browse the repository at this point in the history
  • Loading branch information
ebachelet committed Oct 15, 2024
1 parent 8f6566b commit e164bb0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyLIMA/outputs/pyLIMA_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ def create_telescopes_to_plot_model(microlensing_model, pyLIMA_parameters):

model_time = np.r_[model_time1, model_time2,tel.lightcurve_magnitude['time'].value]

mask = (model_time > tel.astrometry['time'].value.min()) & (
model_time < tel.lightcurve_astrometry['time'].value.max())
mask = ((model_time > tel.lightcurve_magnitude['time'].value.min())
& (
model_time < tel.lightcurve_magnitude['time'].value.max()))
model_time = model_time[mask]

model_time.sort()
Expand Down Expand Up @@ -182,7 +183,7 @@ def create_telescopes_to_plot_model(microlensing_model, pyLIMA_parameters):
if tel.location == 'Space':

mask = (model_time > tel.astrometry['time'].value.min()) & (
model_time < tel.lightcurve_astrometry['time'].value.max())
model_time < tel.astrometry['time'].value.max())
model_time = model_time[mask]

model_time.sort()
Expand Down

0 comments on commit e164bb0

Please sign in to comment.