pypet/trajectory.py
def _make_reversed_wildcards(self, old_length=-1):
        """Creates a full mapping from all wildcard translations to the corresponding wildcards"""
        if len(self._reversed_wildcards) > 0:
            # We already created reversed wildcards, so we don't need to do all of them
            # again
            start = old_length
        else:
            start = -1
        for wildcards, func in self._wildcard_functions.items():
            for irun in range(start, len(self)):
                translated_name = func(irun)
                if not translated_name in self._reversed_wildcards:
                    self._reversed_wildcards[translated_name] = ([], wildcards)
                self._reversed_wildcards[translated_name][0].append(irun)
def _make_reversed_wildcards(self, old_length=-1):
        if len(self._reversed_wildcards) > 0:
            # We already created reversed wildcards, so we don't need to do all of them
            # again
            start = old_length
        else:
            start = -1
        for wildcards, func in self._wildcard_functions.items():
            for irun in range(start, len(self)):
                translated_name = func(irun)
                if not translated_name in self._reversed_wildcards:
                    self._reversed_wildcards[translated_name] = ([], wildcards)
                self._reversed_wildcards[translated_name][0].append(irun)
def _make_reversed_wildcards ( self , old_length = - 1 ) : if len ( self . _reversed_wildcards ) > 0 : # We already created reversed wildcards, so we don't need to do all of them # again start = old_length else : start = - 1 for wildcards , func in self . _wildcard_functions . items ( ) : for irun in range ( start , len ( self ) ) : translated_name = func ( irun ) if not translated_name in self . _reversed_wildcards : self . _reversed_wildcards [ translated_name ] = ( [ ] , wildcards ) self . _reversed_wildcards [ translated_name ] [ 0 ] . append ( irun )
Creates a full mapping from all wildcard translations to the corresponding wildcards
Creates a full mapping from all wildcard translations to the corresponding wildcards