From 5d628c1d5fcc6b5748f37868c8a2eaf4fefa560d Mon Sep 17 00:00:00 2001 From: Carsten Ehbrecht Date: Fri, 13 Oct 2023 15:49:51 +0200 Subject: [PATCH] pep8 --- shearwater/processes/wps_cyclone.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/shearwater/processes/wps_cyclone.py b/shearwater/processes/wps_cyclone.py index 3a0e3f3..758d7ba 100644 --- a/shearwater/processes/wps_cyclone.py +++ b/shearwater/processes/wps_cyclone.py @@ -1,6 +1,6 @@ -from pywps import Process, LiteralInput, LiteralOutput, UOM +from pywps import Process, LiteralInput, LiteralOutput from pywps.app.Common import Metadata -from datetime import datetime +# from datetime import datetime import intake @@ -55,16 +55,16 @@ def __init__(self): def _handler(request, response): LOGGER.info("running cyclone ...") - master_catalog=intake.open_catalog(["https://gitlab.dkrz.de/data-infrastructure-services/intake-esm/-/raw/master/esm-collections/cloud-access/dkrz_catalog.yaml"]) + master_catalog = intake.open_catalog(["https://gitlab.dkrz.de/data-infrastructure-services/intake-esm/-/raw/master/esm-collections/cloud-access/dkrz_catalog.yaml"]) # noqa # master_catalog = intake.open_catalog('/pool/data/Catalogs/dkrz_catalog.yaml') era5_catalog = master_catalog['dkrz_era5_disk'] query = { 'era_id': 'ET', - 'level_type':'surface', + 'level_type': 'surface', 'table_id': 128, - #'frequency':'hourly', - 'code':34, + # 'frequency':'hourly', + 'code': 34, 'dataType': 'an', 'validation_date': '2023-06-27', } @@ -73,7 +73,6 @@ def _handler(request, response): # my_catalog.df era_path = my_catalog.df['uri'].iloc[0] - response.outputs['output'].data = f'netcdf {era_path}' response.outputs['output_csv'].data = 'csv ' + request.inputs['model'][0].data return response