From eef5030d7afbb6b870dd06b0fbf3989c995c8873 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Wed, 26 Jun 2024 15:12:21 +0200 Subject: [PATCH] run GHA on main only --- .github/workflows/tests.yml | 2 +- xcape/core.py | 16 ++++------------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 573c896..41b3091 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,7 +3,7 @@ name: Full Tests on: pull_request: push: - # branches: [main] + branches: [main] jobs: run: diff --git a/xcape/core.py b/xcape/core.py index a7c3ad5..fe7bfa3 100644 --- a/xcape/core.py +++ b/xcape/core.py @@ -239,12 +239,8 @@ def _calc_cape_gufunc(*args, **kwargs): over the grid. ''' - if (kwargs['vertical_lev']=='sigma'): - signature = "(i),(i),(i),(),(),()->(),()" - output_dtypes = ('f4','f4') - elif (kwargs['vertical_lev']=='pressure'): - signature = "(i),(i),(i),(),(),(),()->(),()" - output_dtypes = ('f4','f4') + signature = "(i),(i),(i),(),(),()->(),()" + output_dtypes = ('f4','f4') if kwargs['source']=='most-unstable': signature += ",(),()" @@ -451,12 +447,8 @@ def _calc_srh_gufunc(*args, **kwargs): over the grid. ''' - if (kwargs['vertical_lev']=='sigma'): - signature = "(i),(i),(i),(i),(i),(),(),(),(),()->(),()" - output_dtypes = ('f4','f4') - elif (kwargs['vertical_lev']=='pressure'): - signature = "(i),(i),(i),(i),(i),(),(),(),(),(),()->(),()" - output_dtypes = ('f4','f4') + signature = "(i),(i),(i),(i),(i),(),(),(),(),()->(),()" + output_dtypes = ('f4','f4') if kwargs['output_var']=='all': signature += ",(),(),(),(),(),()" #",(2),(2),(2)" output_dtypes = output_dtypes + ('f4','f4','f4','f4','f4','f4') #('f4','f4','f4')