Skip to content

Commit

Permalink
use dummy models
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Sep 10, 2023
1 parent 82de25d commit db340f7
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
4 changes: 2 additions & 2 deletions duck/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# from pywps import configuration

# Provide the path to the SQLite database in the local folder
# DB_URL = "sqlite:////var/lib/pywps/db/provenance.sqlite"
DB_URL = "sqlite:////tmp/provenance.sqlite"
DB_URL = "sqlite:////var/lib/pywps/db/provenance.sqlite"
# DB_URL = "sqlite:////tmp/provenance.sqlite"
# DB_URL = configuration.get_config_value('provenance', 'db_url')


Expand Down
43 changes: 42 additions & 1 deletion duck/processes/wps_clintai.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,48 @@

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

dummy_models = {
"HadCRUT4": [
{
"name": "dataset_name",
"value": "HadCRUT4",
"title": "HadCRUT4 Training dataset: 82133 samples of near surface temperature anomalies from the 20th century reanalysis dataset (https://psl.noaa.gov/data/20thC_Rean/) spanning the period 1870-2009. \nMask dataset: masks of missing values extracted from the HadCRUT4 dataset for the period 1850-2014."

},
{
"name": "file",
"value": "https://www.metoffice.gov.uk/hadobs/hadcrut4/data/current/gridded_fields/HadCRUT.4.6.0.0.median_netcdf.zip",
"title": "Enter a URL to your HadCRUT4 netcdf file."
},
{
"name": "variable_name",
"value": "temperature_anomaly",
"title": "temperature_anomaly"
}
],
"HadCRUT5": [
{
"name": "dataset_name",
"value": "HadCRUT5",
"title": "HadCRUT5 Training dataset: 82133 samples of near surface temperature anomalies from the 20th century reanalysis dataset (https://psl.noaa.gov/data/20thC_Rean/) spanning the period 1870-2009. \nMask dataset: masks of missing values extracted from the HadCRUT4 dataset for the period 1850-2014."

},
{
"name": "file",
"value": "https://www.metoffice.gov.uk/hadobs/hadcrut5/data/current/non-infilled/HadCRUT.5.0.1.0.anomalies.ensemble_mean.nc",
"title": "Enter a URL to your HadCRUT5 netcdf file."
},
{
"name": "variable_name",
"value": "tas_mean",
"title": "tas_mean"
}
]
}

# info_models_string = json.dumps(info_models, separators=(',', ':'))
info_models_string = json.dumps(dummy_models, separators=(',', ':'))


class ClintAI(Process):
Expand Down

0 comments on commit db340f7

Please sign in to comment.