pegasusio/multimodal_data.py
def add_data(self, unidata: UnimodalData) -> None:
        """ Add data, if _selected is not set, set as the first added dataset
        """
        key = unidata.get_uid()
        assert key is not None
        if key in self.data:
            raise ValueError(f"Key '{key}' already exists!")
        self.data[key] = unidata
        if self._selected is None:
            self._selected = key
            self._unidata = unidata
 Add data, if _selected is not set, set as the first added dataset
        
Add data, if _selected is not set, set as the first added dataset
Add data if _selected is not set set as the first added dataset
def add_data(self, unidata: UnimodalData) -> None:
        key = unidata.get_uid()
        assert key is not None
        if key in self.data:
            raise ValueError(f"Key '{key}' already exists!")
        self.data[key] = unidata
        if self._selected is None:
            self._selected = key
            self._unidata = unidata
def add_data ( self , unidata : UnimodalData ) -> None : key = unidata . get_uid ( ) assert key is not None if key in self . data : raise ValueError ( f"Key '{key}' already exists!" ) self . data [ key ] = unidata if self . _selected is None : self . _selected = key self . _unidata = unidata
Add data, if _selected is not set, set as the first added dataset
Add data if _selected is not set set as the first added dataset
""" Add data, if _selected is not set, set as the first added dataset
        """
self
unidata
UnimodalData