RAMjET

ramjet.photometric_database.derived.moa_microlensing_light_curve_collection

Code for a light curve collection of the MOA data.

Module Contents

Classes

MOAPositiveMicrolensingLightCurveCollection A light curve collection of the MOA data with previously detected microlensing events.
MOANegativeMicrolensingLightCurveCollection A light curve collection of the MOA data with no microlensing event.
MicrolensingSyntheticPSPLSignalCollection A class representing a collection of light curves. Used to define how to find, load, and label a set of light
MicrolensingSyntheticGeneratedDuringRunningSignalCollection A class representing a collection of light curves. Used to define how to find, load, and label a set of light
class MOAPositiveMicrolensingLightCurveCollection(dataset_splits=None, split_pieces=5)[source]

Bases: ramjet.photometric_database.light_curve_collection.LightCurveCollection

A light curve collection of the MOA data with previously detected microlensing events.

__init__(self, dataset_splits=None, split_pieces=5)[source]

Initialize self. See help(type(self)) for accurate signature.

get_paths(self)[source]

Gets the paths for the light curves in the positive collection.

Returns:An iterable of the light curve paths.
load_times_and_fluxes_from_path(self, path: Path)[source]

Loads the times and fluxes from a given light curve path.

Parameters:path – The path to the light curve file.
Returns:The times and the fluxes of the light curve.
class MOANegativeMicrolensingLightCurveCollection(dataset_splits=None, split_pieces=5)[source]

Bases: ramjet.photometric_database.light_curve_collection.LightCurveCollection

A light curve collection of the MOA data with no microlensing event.

__init__(self, dataset_splits=None, split_pieces=5)[source]

Initialize self. See help(type(self)) for accurate signature.

get_paths(self)[source]

Gets the paths for the light curves in the negative collection.

Returns:An iterable of the light curve paths.
load_times_and_fluxes_from_path(self, path: Path)[source]

Loads the times and fluxes from a given light curve path.

Parameters:path – The path to the light curve file.
Returns:The times and the fluxes of the light curve.
class MicrolensingSyntheticPSPLSignalCollection[source]

Bases: ramjet.photometric_database.light_curve_collection.LightCurveCollection

A class representing a collection of light curves. Used to define how to find, load, and label a set of light curves.

Variables:
  • label – The default label to be used if the load_label_from_path method is not overridden.
  • paths – The default list of paths to be used if the get_paths method is not overridden.
__init__(self)[source]

Initialize self. See help(type(self)) for accurate signature.

get_paths(self)[source]

Gets the paths for the PSPL microlensing signals.

Returns:An iterable of the light curve paths.
load_times_and_magnifications_from_path(self, path: Path)[source]

Loads the times and magnifications from a given path as an injectable signal.

Parameters:path – The path to the light curve/signal file.
Returns:The times and the magnifications of the light curve/signal.
class MicrolensingSyntheticGeneratedDuringRunningSignalCollection[source]

Bases: ramjet.photometric_database.light_curve_collection.LightCurveCollection

A class representing a collection of light curves. Used to define how to find, load, and label a set of light curves.

Variables:
  • label – The default label to be used if the load_label_from_path method is not overridden.
  • paths – The default list of paths to be used if the get_paths method is not overridden.
__init__(self)[source]

Initialize self. See help(type(self)) for accurate signature.

get_paths(self)[source]

No need to get paths because this function will generate the signals on the fly.

Returns:empty generator.
load_times_and_magnifications_from_path(self, path: Path)[source]

Loads the times and magnifications from a random generated signal.

Parameters:path – empty path
Returns:The times and the magnifications of the signal.