turonova / cryoCAT

Contextual Analysis Tools for cryoET and subtomogram averaging
GNU General Public License v3.0
19 stars 2 forks source link

Missing return statement in ioutils.total_dose_load #7

Closed czimmerli closed 7 months ago

czimmerli commented 9 months ago

ioutils.total_dose_load is missing the return stement for total_dose when reading the dose from a warp .xml file:

lines 379-381:

    elif input_dose.endswith(".xml"):
        total_dose = get_data_from_warp_xml(input_dose, "Dose", node_level=1)
    else:

should be

    elif input_dose.endswith(".xml"):
        total_dose = get_data_from_warp_xml(input_dose, "Dose", node_level=1)
        return total_dose
    else:
turonova commented 7 months ago

This was fixed by Marta