def add2grid(self):
        if -1 > self.__class__.__name__.find('Load'):
            return False
        if self.__class__.__name__.find('Moment') > -1:
            ref = 3
        else:
            ref = 0
        grid = self.model.griddict[int(self.gridid)]
        for sub in self.subcases.values():
            if not sub.loadid in self.model.loaddict.keys():
                lf = 1.
            else:    
                load = self.model.loaddict[sub.loadid]
                if load.__class__.__name__.find('Load') > -1:
                    lf = load.scaledict[self.id]
                else:
                    lf = 1.
            grid.add_load(sub.id, ref + 1, lf * float(self.x1))
            grid.add_load(sub.id, ref + 2, lf * float(self.x2))
            grid.add_load(sub.id, ref + 3, lf * float(self.x3))
        return True
dataset/ETHPy150Open saullocastro/mapy/mapy/model/loads/loads.py/Loads.add2grid/swapped operands of `>`