Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix quality gate #821

Closed
Tracked by #805
veenstrajelmer opened this issue Apr 9, 2024 · 0 comments
Closed
Tracked by #805

fix quality gate #821

veenstrajelmer opened this issue Apr 9, 2024 · 0 comments

Comments

@veenstrajelmer
Copy link
Collaborator

veenstrajelmer commented Apr 9, 2024

Change this condition so that it does not always evaluate to true; some subsequent code is never executed.:

yearmonth = True
if yearmonth: # on unique year+month combinations
Change this condition so that it does not always evaluate to true; some subsequent code is never executed.
    data_xr_monthmean = data_frommap_merged.resample(time='MS').mean(dim='time')
else: #on unique month numbers
    data_xr_monthmean = data_frommap_merged.groupby('time.month').mean() 
    data_xr_monthmean = data_xr_monthmean.rename({'month':'time'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant