nasa/opera-sds-pcm

[Bug]: cmr_aduit report name contains duplicate timestamp and missing start timestamp

Closed this issue · 0 comments

LalaP commented

Checked for duplicates

Yes - I've already checked

Describe the bug

When I did generated report using cmr_audit.py noticed that the name has duplicate end_date/time stamp and missing start_end/time stamp.

For example when used the following as parameters for the command:
start_datetime = 20230720T000000Z
end_datetime = 20230801T000000Z

The result report was named:
missing_granules_HLS-DSWx_20230801-000000ZZ_20230801-000000ZZ_20230914-163301Z.txt

Also note it had two "Z" in report name.

What did you expect?

The name expected was:

missing_granules_HLS-DSWx_20230720-000000Z_20230801-000000Z_20230914-163301Z.txt

Reproducible steps

try th efollowing command to generate the report:

python tools/ops/cmr_audit/cmr_audit_hls.py --start-datetime 2023-07-20T00:00:00Z  --end-datetime 2023-08-01T00:00:00Z

Environment

Ran on my own system (MacOS Ventura 13.5.1)