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]
Parameters:
  • label – The label corresponding to the lightcurves in the collection.
  • function_to_get_paths – A function which returns an iterable of the lightcurve paths.
  • function_to_load_times_and_fluxes_from_path – A function which, given a lightcurve path, will load the times and fluxes of the lightcurve.
  • function_to_load_times_and_magnifications_from_path – A function which, given a lightcurve path, will load the times and magnifications of the lightcurve.
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]
Parameters:
  • label – The label corresponding to the lightcurves in the collection.
  • function_to_get_paths – A function which returns an iterable of the lightcurve paths.
  • function_to_load_times_and_fluxes_from_path – A function which, given a lightcurve path, will load the times and fluxes of the lightcurve.
  • function_to_load_times_and_magnifications_from_path – A function which, given a lightcurve path, will load the times and magnifications of the lightcurve.
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.

__init__(self)[source]
Parameters:
  • label – The label corresponding to the lightcurves in the collection.
  • function_to_get_paths – A function which returns an iterable of the lightcurve paths.
  • function_to_load_times_and_fluxes_from_path – A function which, given a lightcurve path, will load the times and fluxes of the lightcurve.
  • function_to_load_times_and_magnifications_from_path – A function which, given a lightcurve path, will load the times and magnifications of the lightcurve.
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.

__init__(self)[source]
Parameters:
  • label – The label corresponding to the lightcurves in the collection.
  • function_to_get_paths – A function which returns an iterable of the lightcurve paths.
  • function_to_load_times_and_fluxes_from_path – A function which, given a lightcurve path, will load the times and fluxes of the lightcurve.
  • function_to_load_times_and_magnifications_from_path – A function which, given a lightcurve path, will load the times and magnifications of the lightcurve.
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.