Skip to content

VisibleDeprecationWarning in llh.py #174

@mlincett

Description

@mlincett

Trying to test a stacking analysis with a box-like time PDF, I get the following warning:

kwargs["SoB_spacetime_cache"] = np.array(SoB_spacetime)
/lustre/fs20/group/icecube/mlincett/software/flarestack/flarestack/core/llh.py:912: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.

Not sure whether this is due to something wrong in my inputs or it is inherent to the way the code currently works, any clue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions