INNER CODE UNIT · Python

IteratorItem

KATRIN-Experiment/Kassiopeia · Kassiopeia/Python/KassiopeiaReader.py:9

class IteratorItem:
    """
    A simple class to access items returned by Iterator.next().

    Usage example: see below.
    """

    def __init__(self, data, filename, treename, index=-1):
        """
        Initialize a new iterator item.

        Args:
            data (dict): Data dictionary associated with this item.
            filename (string): Name of the originating ROOT file.
            treename (string): Name of the originating ROOT tree.
            index (int): Index of the originating tree item.
        """
        assert(type(data) == dict)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…