Skip to content

Commit 71b9fa3

Browse files
authored
fix csv2bufr mappings list (#150)
this fixes the messy output for `csv2bufr mappings list ` : csv2bufr mappings list {"52915a45-02ab-4959-8e3b-9c8c26ddd18b": {"label": "Surface land stations (Campbell - Africa)", "description": "Mapping template for converting CSV data from Campbell data loggers configured and deployed in Africa to BUFR seqeunce 301150, 307080.", "version": "1", "author": "David I. Berry", "dateCreated": "2024-02-14", "id": "52915a45-02ab-4959-8e3b-9c8c26ddd18b", "path": "/opt/csv2bufr/templates/CampbellAfrica-v1-template.json", "name": "CampbellAfrica-v1-template"}, "2fe51aa5-d98a-4712-9954-45c7075462da": {"label": "daycli-template", "description": "Mapping template for converting daily climate CSV data to BUFR sequence 307075", "version": "3", "author": "David I. Berry", "dateCreated": "2023-09-01", "id": "2fe51aa5-d98a-4712-9954-45c7075462da", "path": "/opt/csv2bufr/templates/daycli-template.json", "name": "daycli-template"}, "21327aac-46a6-437d-ae81-7a16a637dd2c": {"label": "Surface land stations (AWS)", "description": "Mapping template for converting CSV data from simplified automatic weather station file to BUFR sequence 301150, 307096", "version": "5", "author": "David I. Berry", "dateCreated": "2023-09-01", "id": "21327aac-46a6-437d-ae81-7a16a637dd2c", "path": "/opt/csv2bufr/templates/aws-template.json", "name": "aws-template"}} [ "52915a45-02ab-4959-8e3b-9c8c26ddd18b", { "label": "Surface land stations (Campbell - Africa)", "description": "Mapping template for converting CSV data from Campbell data loggers configured and deployed in Africa to BUFR seqeunce 301150, 307080.", "version": "1", "author": "David I. Berry", "dateCreated": "2024-02-14", "id": "52915a45-02ab-4959-8e3b-9c8c26ddd18b", "path": "/opt/csv2bufr/templates/CampbellAfrica-v1-template.json", "name": "CampbellAfrica-v1-template" } ] [ "2fe51aa5-d98a-4712-9954-45c7075462da", { "label": "daycli-template", "description": "Mapping template for converting daily climate CSV data to BUFR sequence 307075", "version": "3", "author": "David I. Berry", "dateCreated": "2023-09-01", "id": "2fe51aa5-d98a-4712-9954-45c7075462da", "path": "/opt/csv2bufr/templates/daycli-template.json", "name": "daycli-template" } ] [ "21327aac-46a6-437d-ae81-7a16a637dd2c", { "label": "Surface land stations (AWS)", "description": "Mapping template for converting CSV data from simplified automatic weather station file to BUFR sequence 301150, 307096", "version": "5", "author": "David I. Berry", "dateCreated": "2023-09-01", "id": "21327aac-46a6-437d-ae81-7a16a637dd2c", "path": "/opt/csv2bufr/templates/aws-template.json", "name": "aws-template" } ]
1 parent 9bb19c4 commit 71b9fa3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

csv2bufr/cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def mappings():
7878
@click.pass_context
7979
def list_mappings(ctx):
8080
templates = c2bt.list_templates()
81-
click.echo(json.dumps(templates))
8281
for tmpl in templates.items():
8382
click.echo(json.dumps(tmpl, indent=4))
8483

0 commit comments

Comments
 (0)