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

Remove unused function in taspr route #478

Open
BobTorgerson opened this issue Oct 28, 2024 · 0 comments
Open

Remove unused function in taspr route #478

BobTorgerson opened this issue Oct 28, 2024 · 0 comments

Comments

@BobTorgerson
Copy link
Contributor

data-api/routes/taspr.py

Lines 380 to 403 in 404df1d

async def fetch_tas_2km_mmm_point_data(x, y, month, summary_years):
"""Make the async request for the data at the specified point for
a specific varname.
Args:
x (float): lower x-coordinate bound
y (float): lower y-coordinate bound
month (int): month to summarize over, one of 0 - 11
summary_years (tuple): 2-tuple of integers mapped to
desired range of years to summarise over,
e.g. (0, 10) for 2006-2016
Returns:
list of averaged mmm data results
"""
point_data_list = await fetch_data(
[
generate_wcs_query_url(
get_tas_2km_wcps_request_str(x, y, month, summary_years)
)
]
)
return point_data_list

This function is never called and is incomplete. We can safely remove this function from the taspr route.

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