from __future__ import annotations

import logging
from typing import Sequence

from meerkat.cells.imagepath import ImagePath
from meerkat.columns.cell_column import CellColumn

logger = logging.getLogger(__name__)


class ImageColumn(CellColumn):
    def __init__(self, *args, **kwargs):
        super(ImageColumn, self).__init__(*args, **kwargs)

    @classmethod
    def from_filepaths(
        cls,
        filepaths: Sequence[str] = None,
        loader: callable = None,
        transform: callable = None,
        *args,
        **kwargs,
    ):
        cells = [ImagePath(fp, transform=transform, loader=loader) for fp in filepaths]

        return cls(
            cells=cells,
            *args,
            **kwargs,
        )

7858e8b8ad756e1a7bbfad93c07e5364d5e973e8
<mask token>


class ImageColumn(CellColumn):

    def __init__(self, *args, **kwargs):
        super(ImageColumn, self).__init__(*args, **kwargs)
    <mask token>

<mask token>


class ImageColumn(CellColumn):

    def __init__(self, *args, **kwargs):
        super(ImageColumn, self).__init__(*args, **kwargs)

    @classmethod
    def from_filepaths(cls, filepaths: Sequence[str]=None, loader: callable
        =None, transform: callable=None, *args, **kwargs):
        cells = [ImagePath(fp, transform=transform, loader=loader) for fp in
            filepaths]
        return cls(*args, cells=cells, **kwargs)

<mask token>
logger = logging.getLogger(__name__)


class ImageColumn(CellColumn):

    def __init__(self, *args, **kwargs):
        super(ImageColumn, self).__init__(*args, **kwargs)

    @classmethod
    def from_filepaths(cls, filepaths: Sequence[str]=None, loader: callable
        =None, transform: callable=None, *args, **kwargs):
        cells = [ImagePath(fp, transform=transform, loader=loader) for fp in
            filepaths]
        return cls(*args, cells=cells, **kwargs)

from __future__ import annotations
import logging
from typing import Sequence
from meerkat.cells.imagepath import ImagePath
from meerkat.columns.cell_column import CellColumn
logger = logging.getLogger(__name__)


class ImageColumn(CellColumn):

    def __init__(self, *args, **kwargs):
        super(ImageColumn, self).__init__(*args, **kwargs)

    @classmethod
    def from_filepaths(cls, filepaths: Sequence[str]=None, loader: callable
        =None, transform: callable=None, *args, **kwargs):
        cells = [ImagePath(fp, transform=transform, loader=loader) for fp in
            filepaths]
        return cls(*args, cells=cells, **kwargs)

from __future__ import annotations

import logging
from typing import Sequence

from meerkat.cells.imagepath import ImagePath
from meerkat.columns.cell_column import CellColumn

logger = logging.getLogger(__name__)


class ImageColumn(CellColumn):
    def __init__(self, *args, **kwargs):
        super(ImageColumn, self).__init__(*args, **kwargs)

    @classmethod
    def from_filepaths(
        cls,
        filepaths: Sequence[str] = None,
        loader: callable = None,
        transform: callable = None,
        *args,
        **kwargs,
    ):
        cells = [ImagePath(fp, transform=transform, loader=loader) for fp in filepaths]

        return cls(
            cells=cells,
            *args,
            **kwargs,
        )
