Camera.sort_by_date

giant.camera:

Camera.sort_by_date()[source]

This method is used to sort the images currently loaded to the images attribute by date.

It also ensures that the image_mask list remains in sync with the images. The images are sorted by the observation_date attribute for each image.

Note

To ensure that the images are truly sorted by date throughout all image processing steps, this method should be called after any add_images(), or remove_images() method calls needed.