-
Notifications
You must be signed in to change notification settings - Fork 15
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
VARIABLE ERROR #20
Comments
Hi. Quick question, what version of the library are you using? |
hello @daquinterop I hope you had great day. |
Change the variables argument for vars. Or simply pass the arguments as
non-positional arguments, I think that's how I do it in the example
notebooks.
…On Thu, Oct 12, 2023, 2:56 AM mhwahla ***@***.***> wrote:
hello @daquinterop <https://github.com/daquinterop> I hope you had great
day.
changed the version of
error persists even with this older version.
[image: image]
<https://user-images.githubusercontent.com/51794945/274524604-80067e5f-561b-4820-abad-518e761c4478.png>
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJXEPKSZMQKZNJ7HTFRHG43X66PDBANCNFSM6AAAAAA535WM3U>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @daquinterop I hope you are doing great, we have got this error while creating weather instance, can you give us hint on this ? thanks
TypeError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_7804\2970603011.py in
7 'Cumulative precipitation(mm)': 'RAIN',
8 'Cumulative solar radiation(MJ/m2)': 'SRAD',
----> 9 'Average relative humidity(%)': 'RHUM'
10 }
11 )
TypeError: init() got an unexpected keyword argument 'variables'
![image](https://private-user-images.githubusercontent.com/51794945/274276679-a1877e00-3209-4843-990f-97011153700a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMDQ2NzAsIm5iZiI6MTcyNDEwNDM3MCwicGF0aCI6Ii81MTc5NDk0NS8yNzQyNzY2NzktYTE4NzdlMDAtMzIwOS00ODQzLTk5MGYtOTcwMTExNTM3MDBhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE5VDIxNTI1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJiNDQzZWM2ZmIzOTU3YjNmZWNhZmUyMzI4M2YxZjQzNjhmYzRhNjRmMWRlZDc3MTQxOWU2NDQ5NmIxMTUyNzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.1DA1XqLLZ5aawjs0drbBiOjEWCaCJywZnLlytX25RZM)
apologies if its very basic , we are super new to this.
Create a WeatherData instance
WTH_DATA = Weather(
dt,
variables={
'Absolute maximum temperature (°C)': 'TMAX',
'Absolute minimum temperature (°C)': 'TMIN',
'Cumulative precipitation(mm)': 'RAIN',
'Cumulative solar radiation(MJ/m2)': 'SRAD',
'Average relative humidity(%)': 'RHUM'
}
)
Write a weather data file
dt.to_csv('weather.csv')
wth = WeatherStation(
WTH_DATA,
{
'ELEV': float(X_data['ELEV'].values[0]),
'LAT': float(X_data['LAT'].values[0]),
'LON': float(X_data['LON'].values[0]),
'INSI': X_data['INSI'].values[0]
}
)
thanks
The text was updated successfully, but these errors were encountered: