o
    i#  ã                   @  sV   d dl mZ d dlmZ d dlmZ d dlmZ g d¢ZG dd„ deeƒZ	e	 Z
ZdS )	é    )Úannotations)ÚKeysCollection)ÚInvertibleTrait)ÚMapTransform)ÚApplyPendingdÚApplyPendingDÚApplyPendingDictc                      s2   e Zd ZdZd
‡ fdd„Zdd„ Zdd	„ Z‡  ZS )r   aÈ  
    ApplyPendingd can be inserted into a pipeline that is being executed lazily in order
    to ensure resampling happens before the next transform. It doesn't do anything itself,
    but its presence causes the pipeline to be executed as it doesn't implement ``LazyTrait``

    See ``Compose`` for a detailed explanation of the lazy resampling feature.

    Args:
        keys: the keys for tensors that should have their pending transforms executed
    Úkeysr   c                   s   t ƒ  |¡ d S ©N)ÚsuperÚ__init__)Úselfr	   ©Ú	__class__© úb/home/dell461/cl/sdc2/last_ska_mid/HISourceFinder-master-l/src/monai/transforms/lazy/dictionary.pyr   !   s   zApplyPendingd.__init__c                 C  ó   |S r
   r   ©r   Údatar   r   r   Ú__call__$   ó   zApplyPendingd.__call__c                 C  r   r
   r   r   r   r   r   Úinverse'   r   zApplyPendingd.inverse)r	   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   Ú__classcell__r   r   r   r   r      s
    r   N)Ú
__future__r   Úmonai.configr   Úmonai.transforms.traitsr   Úmonai.transforms.transformr   Ú__all__r   r   r   r   r   r   r   Ú<module>   s   