Skip to content

imagedatainfo

imagedatainfo

Module of the ImageDataInfo

Classes

ImageDataInfo dataclass

Bases: DataInfo, ABC

Contains all information for image data

Functions
get_filename
get_filename()

Split the image_location from self.image_location

Returns:

  • str

    Only the image_location as a str

Source code in niceml/data/datainfos/imagedatainfo.py
def get_filename(self) -> str:
    """
    Split the image_location from `self.image_location`

    Returns:
        Only the image_location as a str
    """
    return basename(self.get_identifier())
get_image_location
get_image_location()

Return the image filepath

Source code in niceml/data/datainfos/imagedatainfo.py
def get_image_location(self) -> str:
    """Return the image filepath"""
    return self.image_location