def make_trajectory_name(testcase):
    """Creates a trajectory name based on the current `testcase`"""

    testid = testcase.id()
    split_names = testid.split('.')
    #name = 'T__' + '__'.join(split_names[-2:]) + '__' + randintstr
    seed = len(testid) + int(10*time.time())
    random.seed(seed)
    randintstr = str(random.randint(0, 10 ** 5))
    name = 'T__' + split_names[-1] + '__' + randintstr

    maxlen = pypetconstants.HDF5_STRCOL_MAX_NAME_LENGTH - 22

    if maxlen > len(name):
        name = name[len(name)-maxlen:]

        while name.startswith('_'):
            name = name[1:]

    return name
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/tests/testutils/ioutils.py/make_trajectory_name/swapped operands of `>`