lama/utilities/data_clean_up.py
def is_subseq(x: Iterable, y: Iterable) -> bool:
    """
    Check whether x is within y.

    For example
    registrations/deformable is in output/registration/deformable/192_12

    """
    it = iter(y)
    return all(c in it for c in x)

    Check whether x is within y.

    For example
    registrations/deformable is in output/registration/deformable/192_12

    
Check whether x is within y.
For example
registrations/deformable is in output/registration/deformable/192_12
Check whether x is within y . For example registrations / deformable is in output / registration / deformable / 192_12
def is_subseq(x: Iterable, y: Iterable) -> bool:
    it = iter(y)
    return all(c in it for c in x)
def is_subseq ( x : Iterable , y : Iterable ) -> bool : it = iter ( y ) return all ( c in it for c in x )
Check whether x is within y.
Check whether x is within y .
"""
    Check whether x is within y.

    For example
    registrations/deformable is in output/registration/deformable/192_12

    """
x
Iterable
y
Iterable