Skip to content

Commit

Permalink
update info_models
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Sep 10, 2023
1 parent 5ef9239 commit 82de25d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion duck/processes/wps_clintai.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
from datetime import datetime
import json
import yaml
import xarray as xr

from pywps import Process
Expand Down Expand Up @@ -30,6 +31,8 @@
INFO_ROLE = "https://clint.dkrz.de/spec/crai/info"

models_list = list(craimodels.info_models().keys())
info_models = yaml.safe_load(craimodels.raw_text())
info_models_string = json.dumps(info_models, separators=(',', ':'))


class ClintAI(Process):
Expand Down Expand Up @@ -86,7 +89,7 @@ def __init__(self):
metadata=[
Metadata(
title="CRAI Info Model",
href=f"{craimodels.raw_text()}",
href=f"{info_models_string}",
role=INFO_ROLE,
),
Metadata(
Expand Down

0 comments on commit 82de25d

Please sign in to comment.