Skip to content

Commit

Permalink
Ensure space base models are within the observed time**2
Browse files Browse the repository at this point in the history
  • Loading branch information
ebachelet committed Oct 15, 2024
1 parent 6f27472 commit 8f6566b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyLIMA/outputs/pyLIMA_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ 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.lightcurve_magnitude['time'].value.min()) &
(model_time < tel.lightcurve_magnitude['time'].value.max())
mask = (model_time > tel.astrometry['time'].value.min()) & (
model_time < tel.lightcurve_astrometry['time'].value.max())
model_time = model_time[mask]

model_time.sort()
Expand Down Expand Up @@ -181,8 +181,8 @@ 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())
mask = (model_time > tel.astrometry['time'].value.min()) & (
model_time < tel.lightcurve_astrometry['time'].value.max())
model_time = model_time[mask]

model_time.sort()
Expand Down

0 comments on commit 8f6566b

Please sign in to comment.