Data Class Family
- class model.PSPL
Bases:
ABC
Methods
animate
(tE, time_steps, frame_time, name, ...)Produces animation of microlensing event.
get_chi2_photometry
get_lnL_constant
get_photometry
log_likely_photometry
log_likely_photometry_each
- animate(tE, time_steps, frame_time, name, size, zoom, astrometry)
Produces animation of microlensing event. This function takes the PSPL and makes an animation, the input variables are as follows
- Parameters
- tE:
- number of einstein crossings times before/after the peak you want the animation to plot
e.g tE = 2 => graph will go from -2 tE to 2 tE
- time_steps:
number of time steps before/after peak, so total number of time steps will be 2 times this value
- frame_time:
times in ms of each frame in the animation
- name: string
the animation will be saved as name.html
- size: list
[horizontal, vertical] cm’s
- zoom:
# of einstein radii plotted in vertical direction
- class model.PSPL_Phot
Bases:
PSPL
Contains methods for model a PSPL photometry only. This is a Data-type class in our hierarchy. It is abstract and should not be instantiated.
Methods
animate
(tE, time_steps, frame_time, name, ...)Produces animation of microlensing event.
get_astrometry
get_astrometry_unlensed
get_centroid_shift
get_chi2_photometry
get_lens_astrometry
get_lnL_constant
get_photometry
get_resolved_amplification
get_resolved_astrometry
log_likely_astrometry
log_likely_photometry
log_likely_photometry_each
- animate(tE, time_steps, frame_time, name, size, zoom, astrometry)
Produces animation of microlensing event. This function takes the PSPL and makes an animation, the input variables are as follows
- Parameters
- tE:
- number of einstein crossings times before/after the peak you want the animation to plot
e.g tE = 2 => graph will go from -2 tE to 2 tE
- time_steps:
number of time steps before/after peak, so total number of time steps will be 2 times this value
- frame_time:
times in ms of each frame in the animation
- name: string
the animation will be saved as name.html
- size: list
[horizontal, vertical] cm’s
- zoom:
# of einstein radii plotted in vertical direction
- class model.PSPL_PhotAstrom
Bases:
PSPL
Contains methods for model a PSPL photometry + astrometry. This is a Data-type class in our hierarchy. It is abstract and should not be instantiated.
Methods
animate
(tE, time_steps, frame_time, name, ...)Produces animation of microlensing event.
get_chi2_astrometry
get_chi2_photometry
get_lnL_constant
get_photometry
log_likely_astrometry
log_likely_astrometry_each
log_likely_photometry
log_likely_photometry_each
- animate(tE, time_steps, frame_time, name, size, zoom, astrometry)
Produces animation of microlensing event. This function takes the PSPL and makes an animation, the input variables are as follows
- Parameters
- tE:
- number of einstein crossings times before/after the peak you want the animation to plot
e.g tE = 2 => graph will go from -2 tE to 2 tE
- time_steps:
number of time steps before/after peak, so total number of time steps will be 2 times this value
- frame_time:
times in ms of each frame in the animation
- name: string
the animation will be saved as name.html
- size: list
[horizontal, vertical] cm’s
- zoom:
# of einstein radii plotted in vertical direction
- class model.PSPL_Astrom
Bases:
PSPL
Contains methods for model a PSPL photometry + astrometry. This is a Data-type class in our hierarchy. It is abstract and should not be instantiated.
Methods
animate
(tE, time_steps, frame_time, name, ...)Produces animation of microlensing event.
get_chi2_astrometry
get_chi2_photometry
get_lnL_constant
get_photometry
log_likely_astrometry
log_likely_astrometry_each
log_likely_photometry
log_likely_photometry_each
- animate(tE, time_steps, frame_time, name, size, zoom, astrometry)
Produces animation of microlensing event. This function takes the PSPL and makes an animation, the input variables are as follows
- Parameters
- tE:
- number of einstein crossings times before/after the peak you want the animation to plot
e.g tE = 2 => graph will go from -2 tE to 2 tE
- time_steps:
number of time steps before/after peak, so total number of time steps will be 2 times this value
- frame_time:
times in ms of each frame in the animation
- name: string
the animation will be saved as name.html
- size: list
[horizontal, vertical] cm’s
- zoom:
# of einstein radii plotted in vertical direction