Skip to content

Improve DeprecationWarning #109

@michaelaye

Description

@michaelaye

Using version 1.3.2 via conda python 3.12

I'm getting:

PendingDeprecationWarning: The pvl.collections.Units object is deprecated, and may be removed at the next major patch. Please use pvl.collections.Quantity instead.

even so I am not using the mentioned objects.
It seems, that when pvl.load() is called to parse a PDS label file, it internally creates Units objects if there are units in the PDS label. This is happening even though my code isn't directly using the Units class, hence the confusion.

Could this be solved differently somehow, maybe inform the user that it's an internal deprecation, or how to exactly use the Quantity object, even so I'm not controlling it?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions