RAMjET

ramjet.analysis.viewer.preloader

Code to load view entities in the background so they show up quickly when displayed.

Module Contents

Classes

Preloader A class to load view entities in the background so they show up quickly when displayed.
class Preloader[source]

A class to load view entities in the background so they show up quickly when displayed.

minimum_preloaded = 25
maximum_preloaded = 50
__init__(self)[source]

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

load_view_entity_at_index_as_current(self, index: int)[source]

Loads the view entity at the passed index as the current view entity.

Parameters:index – The index in the path list to load.
load_surrounding_view_entities(self)[source]

Loads the next and previous view entities relative to the current view entity.

load_next_view_entities(self)[source]

Preload the next view entities.

load_previous_view_entities(self)[source]

Preload the previous view entities.

increment(self)[source]

Increments to the next view entity, and calls loading as necessary.

Returns:The new current view entity.
decrement(self)[source]

Decrements to the previous view entity, and calls loading as necessary.

Returns:The new current view entity.
refresh_surrounding_light_curve_loading(self)[source]

Cancels the existing loading task and starts a new one.

cancel_loading_task(self)[source]

Cancels an existing loading task if it exists.

reset_deques(self)[source]

Cancels any loading tasks, clears the deques, and starts the loading task.

classmethod from_csv_path(cls, csv_path: Path, starting_index: int = 0)[source]

Create a preloader from a CSV of light curve identifiers.

Parameters:
  • csv_path – A path to a CSV containing light curve identifier information.
  • starting_index – The starting index to preload around.
Returns:

The preloader.