def remove_irradiation_position(self, irradiation, level, hole):
    p = self.get_level_path(irradiation, level)
    jd = dvc_load(p)
    if jd:
        if isinstance(jd, list):
            positions = jd
            z = 0
        else:
            positions = jd['positions']
            z = jd['z']
        npositions = [ji for ji in positions if (not (ji['position'] == hole))]
        obj = {'z': z, 'positions': npositions}
        dvc_dump(obj, p)
        self.add(p, commit=False)
def remove_irradiation_position(self, irradiation, level, hole):
    p = self.get_level_path(irradiation, level)
    jd = dvc_load(p)
    if jd:
        if isinstance(jd, list):
            positions = jd
            z = 0
        else:
            positions = jd['positions']
            z = jd['z']
        npositions = [ji for ji in positions if (not (ji['position'] == hole))]
        obj = {'z': z, 'positions': npositions}
        dvc_dump(obj, p)
        self.add(p, commit=False)