def update_flux(self, irradiation, level, pos, identifier, j, e, mj, me, decay=None, position_jerr=None, analyses=None, options=None, add=True):
    if (options is None):
        options = {}
    if (decay is None):
        decay = {}
    if (analyses is None):
        analyses = []
    p = self.get_level_path(irradiation, level)
    jd = dvc_load(p)
    if isinstance(jd, list):
        positions = jd
        z = 0
    else:
        positions = jd.get('positions', [])
        z = jd.get('z', 0)
    npos = {'position': pos, 'j': j, 'j_err': e, 'mean_j': mj, 'mean_j_err': me, 'position_jerr': position_jerr, 'decay_constants': decay, 'identifier': identifier, 'options': options, 'analyses': [{'uuid': ai.uuid, 'record_id': ai.record_id, 'is_omitted': ai.is_omitted()} for ai in analyses]}
    if positions:
        added = any(((ji['position'] == pos) for ji in positions))
        npositions = [(ji if (ji['position'] != pos) else npos) for ji in positions]
        if (not added):
            npositions.append(npos)
    else:
        npositions = [npos]
    obj = {'z': z, 'positions': npositions}
    dvc_dump(obj, p)
    if add:
        self.add(p, commit=False)
def update_flux(self, irradiation, level, pos, identifier, j, e, mj, me, decay=None, position_jerr=None, analyses=None, options=None, add=True):
    if (options is None):
        options = {}
    if (decay is None):
        decay = {}
    if (analyses is None):
        analyses = []
    p = self.get_level_path(irradiation, level)
    jd = dvc_load(p)
    if isinstance(jd, list):
        positions = jd
        z = 0
    else:
        positions = jd.get('positions', [])
        z = jd.get('z', 0)
    npos = {'position': pos, 'j': j, 'j_err': e, 'mean_j': mj, 'mean_j_err': me, 'position_jerr': position_jerr, 'decay_constants': decay, 'identifier': identifier, 'options': options, 'analyses': [{'uuid': ai.uuid, 'record_id': ai.record_id, 'is_omitted': ai.is_omitted()} for ai in analyses]}
    if positions:
        added = any(((ji['position'] == pos) for ji in positions))
        npositions = [(ji if (ji['position'] != pos) else npos) for ji in positions]
        if (not added):
            npositions.append(npos)
    else:
        npositions = [npos]
    obj = {'z': z, 'positions': npositions}
    dvc_dump(obj, p)
    if add:
        self.add(p, commit=False)