Skip to content

Commit

Permalink
Addition of missing elements in csv2bufr mappings create.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Nov 26, 2024
1 parent 12c7f63 commit 81edd37
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions csv2bufr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
__version__ = '0.8.3'

import csv
import uuid
from datetime import timezone, datetime
import hashlib
from io import StringIO, BytesIO
Expand Down Expand Up @@ -357,6 +358,17 @@ def __init__(self, descriptors: list,

def create_template(self) -> None:
template = {}
template["conformsTo"] = "csv2bufr-template-v2.json"
template["metadata"] = {
"label": "",
"description": "",
"version": "0",
"author": "",
"editor": "",
"dateCreated": datetime.now().strftime("%Y-%m-%d"),
"dateModified": datetime.now().strftime("%Y-%m-%d"),
"id": str(uuid.uuid4())
}
template["inputDelayedDescriptorReplicationFactor"] = \
self.delayed_replications

Expand Down

0 comments on commit 81edd37

Please sign in to comment.