Skip to content

Observtion.__eq__ depends on identical encoding for time properties #31

@securedimensions

Description

@securedimensions

Is this a bug?

Comparing observations with the same phenomenonTime but encoded differently results in not equals

Reproducing the error

import frost_sta_client as fsc

o1 = fsc.Observation(phenomenon_time='2024-04-17T12:00:00Z', ...)
o2 = fsc.Observation(phenomenon_time='2024-04-17T12:00:00.000+00:00', ...)

if o1 != o2:
    print("observations are not equal")
else:
    print("observations are equal")

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