def addStep(self, stepParam):
        # this function checks if the step is already present. If it is present, it must update it. If it is not, it must add it.
        param_reg = Paramreg()
        param_reg.update(stepParam)
        if param_reg.step != 0:
            if param_reg.step <= self.steps:
                self.steps[param_reg.step].update(stepParam)
            else:
                self.steps[param_reg.step] = param_reg
        else:
            sct.printv("ERROR: parameters must contain 'step'", 1, 'error')


# MAIN
# ==========================================================================================
dataset/ETHPy150Open neuropoly/spinalcordtoolbox/dev/sct_register_multimodal_old/sct_register_multimodal.py/ParamregMultiStep.addStep/operator `in` -> `<=`