RAMjET

ramjet.data_interface.moa_data_interface

Code for interacting with MOA light curve files and metadata.

Module Contents

Classes

MoaDataInterface A class for interacting with MOA light curve files and metadata.
class MoaDataInterface[source]

A class for interacting with MOA light curve files and metadata.

survey_tag_to_path_list_dictionary_ :Union[Dict[str, List[Path]], None]
no_tag_string = no_tag
all_survey_tags
survey_tag_to_path_list_dictionary :Dict[str, List[Path]]

Property allowing the survey tag to path list dictionary to only be loaded once.

Returns:The survey tag to path list dictionary
static read_takahiro_sumi_nine_year_events_table_as_data_frame(path: Path)[source]

Reads Takahiro Sumi’s 9-year events table as a Pandas data frame.

Parameters:path – The path to the events table file.
Returns:The data frame.
get_tag_for_path_from_data_frame(self, path: Path, events_data_frame: pd.DataFrame)[source]

Gets the event tag of a light curve from the events data frame.

Parameters:
  • path – The path of the light curve whose event tag should be retrieved.
  • events_data_frame – Takahiro Sumi’s 9-year events data frame.
Returns:

The string of the tag of the event. None if no tag exists.

group_paths_by_tag_in_events_data_frame(self, paths: List[Path], events_data_frame: pd.DataFrame)[source]

Groups paths into a dictionary based on their tags.

Parameters:
  • paths – The paths to group.
  • events_data_frame – The events data frame to look for a tag in.
Returns: