opendatacube / datacube-explorer

Web-based exploration of Open Data Cube collections
Apache License 2.0
54 stars 31 forks source link

Fixup eo3 document validation assertions #527

Closed whatnick closed 4 months ago

whatnick commented 1 year ago

eo3 document comparison has a couple of failure:

See snippet of validation error below:

`E       AssertionError: Documents differ:
E           {'type_changes': {"root['bbox'][0]": {'new_type': <class '_pytest.python_api.ApproxScalar'>,
E                                                 'new_value': 114.21535558993006 ± 1.1e-04,
E                                                 'old_type': <class 'float'>,
E                                                 'old_value': 114.21535558993006},
E                             "root['bbox'][1]": {'new_type': <class '_pytest.python_api.ApproxScalar'>,
E                                                 'new_value': -31.250437923368555 ± 3.1e-05,
E                                                 'old_type': <class 'float'>,
E                                                 'old_value': -31.250437923368555},
E                             "root['bbox'][2]": {'new_type': <class '_pytest.python_api.ApproxScalar'>,
E                                                 'new_value': 116.64907638404333 ± 1.2e-04,
E                                                 'old_type': <class 'float'>,
E                                                 'old_value': 116.64907638404333},
E                             "root['bbox'][3]": {'new_type': <class '_pytest.python_api.ApproxScalar'>,
E                                                 'new_value': -29.349050663163574 ± 2.9e-05,
E                                                 'old_type': <class 'float'>,
E                                                 'old_value': -29.349050663163574}},
E            'values_changed': {"root['stac_extensions'][1]": {'new_value': 'https://stac-extensions.github.io/projection/v1.0.0/schema.json',
E                                                              'old_value': 'https://stac-extensions.github.io/projection/v1.1.0/schema.json'}}}`
Ariana-B commented 4 months ago

This appears to be resolved