RAMjET

ramjet.photometric_database.derived.moa_microlensing_lightcurve_collection

Code for a lightcurve collection of the MOA data.

Module Contents

Classes

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

Bases: ramjet.photometric_database.lightcurve_collection.LightcurveCollection

A lightcurve 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 lightcurves in the positive collection.

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

Loads the times and fluxes from a given lightcurve path.

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

Bases: ramjet.photometric_database.lightcurve_collection.LightcurveCollection

A lightcurve 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 lightcurves in the negative collection.

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

Loads the times and fluxes from a given lightcurve path.

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

Bases: ramjet.photometric_database.lightcurve_collection.LightcurveCollection

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

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 lightcurve 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 lightcurve/signal file.
Returns:The times and the magnifications of the lightcurve/signal.
class MicrolensingSyntheticGeneratedDuringRunningSignalCollection[source]

Bases: ramjet.photometric_database.lightcurve_collection.LightcurveCollection

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

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.