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

Error retrieving values for Shortwave surface downward direct irradiance #371

Open
nathancoliver opened this issue Jun 11, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@nathancoliver
Copy link

I recently tried to set Select.variable equal to Shortwave surface downward direct irradiance, but I got the following error message:

AttributeError: 'numpy.ndarray' object has no attribute 'append'

Here is a minimum working example:

import climakitae as ck

selections = ck.Select()
selections.variable = "Shortwave surface downward direct irradiance"

Shortwave surface downward direct irradiance is listed in the variable_descriptions.csv. Is it possible to retrieve values for this variable? Is there a canonical reference for which variables are available?

@elehmer
Copy link
Contributor

elehmer commented Jun 11, 2024

Issue "fixed" in #372. Still need to follow up on param logic.

@elehmer
Copy link
Contributor

elehmer commented Jun 11, 2024

@nathancoliver That variable was hidden to the GUI using the show=FALSE attribute. Technically you are supposed to be able retrieve data that is hidden to the GUI so we will look into that. Might be just failing into a logic hole that is handled by the GUI (such as changing frequency before selecting variable). Regardless, we have enabled this variable in the GUI so you should be to use it now.

@elehmer elehmer added the bug Something isn't working label Jun 11, 2024
@elehmer elehmer self-assigned this Jun 11, 2024
@elehmer
Copy link
Contributor

elehmer commented Jun 11, 2024

Error is still thrown when doing it manually. Workaround is to set selections.timescale = "hourly" first.

@nathancoliver
Copy link
Author

It is working now. Thank you very much.

@elehmer
Copy link
Contributor

elehmer commented Jun 11, 2024

Reopening so we can remember to see about fixing changing variable before timescale or other parameters.

@vicford
Copy link
Contributor

vicford commented Sep 12, 2024

Noting that "hidden" variables can now be retrieved, via upgrade within: #426

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants