Checked for duplicates
No - I haven't checked
🐛 Describe the bug
When I run validate I get a context_ref_mismatch warning even though I'm using the correct values.
I'm using "NASA/Keck Reflectance Experiment Laboratory" and "NASA Reflectance Experiment Laboratory Bidirectional Visible and Near Infrared Spectrometer" for in <Observing_System_Component> for urn:nasa:pds:context:facility:laboratory.relab and urn:nasa:pds:context:instrument:relab.bd-vnir, respectively.
These are both listed in registered_context_products.json:
{
"name": [
"NASA/Keck Reflectance Experiment Laboratory (RELAB), Brown University, Providence, Rhode Island, United States",
"NASA/Keck Reflectance Experiment Laboratory (RELAB)",
"NASA/Keck Reflectance Experiment Laboratory"
],
"type": [
"Laboratory"
],
"lidvid": "urn:nasa:pds:context:facility:laboratory.relab::1.1"
},
{
"name": [
"Bi-directional Visible and Near Infrared Spectrometer at RELAB",
"NASA Reflectance Experiment Laboratory Bidirectional Visible and Near Infrared Spectrometer",
"RELAB Bidirectional Spectrometer"
],
"type": [
"N/A"
],
"lidvid": "urn:nasa:pds:context:instrument:relab.bd-vnir::1.2"
},
however previous versions are also listed in registered_context_products.json:
{
"name": [
"NASA/Keck Reflectance Experiment Laboratory (RELAB), Brown University, Providence, Rhode Island, United States",
"NASA/Keck Reflectance Experiment Laboratory (RELAB)"
],
"type": [
"Laboratory"
],
"lidvid": "urn:nasa:pds:context:facility:laboratory.relab::1.0"
},
{
"name": [
"Bi-directional Visible and Near Infrared Spectrometer at RELAB",
"RELAB Bidirectional Spectrometer"
],
"type": [
"Spectrometer"
],
"lidvid": "urn:nasa:pds:context:instrument:relab.bd-vnir::1.0"
},
It seems validate doesn't know to skip the older version.
🕵️ Expected behavior
Validate should know to skip the older versions or the older versions should be removed from registered_context_products.json.
Also note that there are other entries in registered_context_products.json which would likely produce the same warnings:
These 3 LIDVIDs are repeated:
urn:esa:psa:context:instrument:vex.mag::1.2
urn:esa:psa:context:instrument:vex.virtis::1.2
urn:esa:psa:context:investigation:mission.venus_express::1.1
and these 5 LIDs (and none other) show up with multiple VIDs
urn:esa:psa:context:instrument_host:spacecraft.vex
urn:nasa:pds:context:instrument:relab.bc-ftir1
urn:nasa:pds:context:instrument:relab.bcf-ftir2
urn:nasa:pds:context:instrument:relab.bd-vnir
urn:nasa:pds:context:investigation:other_investigation.relab_speclib
📜 To Reproduce
🖥 Environment Info
Windows
📚 Version of Software Used
Version 4.2.0
🩺 Test Data / Additional context
Rhyodacite-glass_VNIR_measured_reflectance_photometric_correction_63-106um_g20.xml
🦄 Related requirements
🦄 #xyz
⚙️ Engineering Details
No response
🎉 Integration & Test
No response
Checked for duplicates
No - I haven't checked
🐛 Describe the bug
When I run validate I get a context_ref_mismatch warning even though I'm using the correct values.
I'm using "NASA/Keck Reflectance Experiment Laboratory" and "NASA Reflectance Experiment Laboratory Bidirectional Visible and Near Infrared Spectrometer" for in <Observing_System_Component> for urn:nasa:pds:context:facility:laboratory.relab and urn:nasa:pds:context:instrument:relab.bd-vnir, respectively.
These are both listed in registered_context_products.json:
{
"name": [
"NASA/Keck Reflectance Experiment Laboratory (RELAB), Brown University, Providence, Rhode Island, United States",
"NASA/Keck Reflectance Experiment Laboratory (RELAB)",
"NASA/Keck Reflectance Experiment Laboratory"
],
"type": [
"Laboratory"
],
"lidvid": "urn:nasa:pds:context:facility:laboratory.relab::1.1"
},
{
"name": [
"Bi-directional Visible and Near Infrared Spectrometer at RELAB",
"NASA Reflectance Experiment Laboratory Bidirectional Visible and Near Infrared Spectrometer",
"RELAB Bidirectional Spectrometer"
],
"type": [
"N/A"
],
"lidvid": "urn:nasa:pds:context:instrument:relab.bd-vnir::1.2"
},
however previous versions are also listed in registered_context_products.json:
{
"name": [
"NASA/Keck Reflectance Experiment Laboratory (RELAB), Brown University, Providence, Rhode Island, United States",
"NASA/Keck Reflectance Experiment Laboratory (RELAB)"
],
"type": [
"Laboratory"
],
"lidvid": "urn:nasa:pds:context:facility:laboratory.relab::1.0"
},
{
"name": [
"Bi-directional Visible and Near Infrared Spectrometer at RELAB",
"RELAB Bidirectional Spectrometer"
],
"type": [
"Spectrometer"
],
"lidvid": "urn:nasa:pds:context:instrument:relab.bd-vnir::1.0"
},
It seems validate doesn't know to skip the older version.
🕵️ Expected behavior
Validate should know to skip the older versions or the older versions should be removed from registered_context_products.json.
Also note that there are other entries in registered_context_products.json which would likely produce the same warnings:
These 3 LIDVIDs are repeated:
urn:esa:psa:context:instrument:vex.mag::1.2
urn:esa:psa:context:instrument:vex.virtis::1.2
urn:esa:psa:context:investigation:mission.venus_express::1.1
and these 5 LIDs (and none other) show up with multiple VIDs
urn:esa:psa:context:instrument_host:spacecraft.vex
urn:nasa:pds:context:instrument:relab.bc-ftir1
urn:nasa:pds:context:instrument:relab.bcf-ftir2
urn:nasa:pds:context:instrument:relab.bd-vnir
urn:nasa:pds:context:investigation:other_investigation.relab_speclib
📜 To Reproduce
🖥 Environment Info
Windows
📚 Version of Software Used
Version 4.2.0
🩺 Test Data / Additional context
Rhyodacite-glass_VNIR_measured_reflectance_photometric_correction_63-106um_g20.xml
🦄 Related requirements
🦄 #xyz
⚙️ Engineering Details
No response
🎉 Integration & Test
No response