@staticmethod
    def dict_to_str(dictionary):
        resstr = ''
        new_dict={}
        for key, val in dictionary.items():
            if key == 0:
                key = 'annotation'
            new_dict[key]=val

        for key in sorted(new_dict.keys()):
            resstr+=(key,str(new_dict[key])) % '%s=%s; '
        return resstr[:-2]
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/tests/unittests/annotations_test.py/AnnotationsTest.dict_to_str/swapped operands of `%`