Skip to content

Commit

Permalink
run GHA on main only
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Jun 26, 2024
1 parent 47e7536 commit eef5030
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Full Tests
on:
pull_request:
push:
# branches: [main]
branches: [main]

jobs:
run:
Expand Down
16 changes: 4 additions & 12 deletions xcape/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 += ",(),()"
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit eef5030

Please sign in to comment.