Skip to content

ValueError: Missing 'flags' field in data when running run_mdet_sims with sim_func #2

Description

@s-Sayan

I'm encountering a ValueError when running the function run_mdet_sims(sim_func, {"psf_fwhm": psf_fwhm}, seed=2000, n_sims=1) imported from mdet_meas_tools.py. The error message is:

ValueError: no field of name 'flags'

The error occurs during the execution of the _mask function in measure_shear_metadetect, where the code expects the field 'flags' in the data (which is an output of metadetect.metadetect.do_metadetect), but it is not present. This causes the simulation to fail.

Could you please assist with identifying why the 'flags' field is missing and how to resolve this issue?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions