Skip to content

Commit

Permalink
placeholder for publicDate
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Nov 6, 2023
1 parent 4550533 commit 519f3dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/mk_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import dvpipe.utils as utils
from dvpipe.pipelines.metadatagroup import LmtMetadataGroup, example

_version = "31-oct-2023"
_version = "7-nov-2023"

def header(rc, key, debug=False):
"""
Expand Down Expand Up @@ -146,6 +146,7 @@ def get_version():
lmtdata.add_metadata("projectID", header(rc,"ProjectId",debug))
lmtdata.add_metadata("projectTitle", header(rc,"projectTitle",debug))
lmtdata.add_metadata("PIName", header(rc,"PIName",debug))
lmtdata.add_metadata("publicDate", "2099-12-31") # @todo

#lmtdata.add_metadata("obsnum", header(rc,"obsnum",debug))
#lmtdata.add_metadata("subobsnum", header(rc,"subobsnum",debug))
Expand Down Expand Up @@ -185,7 +186,10 @@ def get_version():


# isCombined - bool, True if more than one obsnum/combined data
lmtdata.add_metadata("isCombined", False)
if obsinfo["obsNum"].find("_") > 0:
lmtdata.add_metadata("isCombined", True)
else:
lmtdata.add_metadata("isCombined", False)

# obsnumlist is deprecated
#lmtdata.add_metadata("obsnumList", header(rc,"obsnum_list",debug))
Expand Down

0 comments on commit 519f3dc

Please sign in to comment.