Closed wkiri closed 2 years ago
I have confirmed this. The file pds4_bundle_template/document/collection_document_inventory.csv
has version 1.0 in it. I am wondering if this file should be in the template. I thought it was generated by the delivery process. (The other inventory files do not exist in the pds4_bundle_template/
directory but do appear in the output.) @stevenlujpl Could you advise whether this file should be removed from the template directory?
I am however still confused as to why validate
does not flag this error when I run it on the bundle. Maybe there are additional flags we need to enable to be more strict.
@wkiri I am not sure why the validate tool doesn't flag this error. I tried running the validate tool with different verbosity levels (i.e., info, warn, debug), but it still doesn't flag this error. I am following up with Scott to ask for the exact command he used.
The collection inventory files except the one for document
collection are generated by the bundle generation script. I originally envisioned the document
collection as a collection that contains only static information which we don't not need to change frequently, so instead of generating the collection_document_inventory.csv
file based on the files in document
, I hardcoded the content of the collection_document_inventory.csv
file.
Currently we will need to manually update the version_id fields for new deliveries. Do you think it makes sense to make the version_id field to be a template variable? This will save us time for manually updating all the version_id fields. We will just need to provide the version id from the command line interface of the bundle generation script. Please let me know what you think. Thanks.
@wkiri I am able to have the validate tool to flag the versioning error. We need to use the -R pds4.bundle
option when we run the validate tool. For example,
/proj/mte/pds4_validation_tool/bin/validate -R pds4.bundle ./mars_target_encyclopedia_v1.2.5/
@wkiri I updated the bundle generation script to auto-generate the inventory file for document collection.
Scott said: