Closed flowirtz closed 4 years ago
Judging by the stacktrace, it seems something is wrong with the var height_meters
that gets passed to load_subset_and_save_data
:
Instead of being a single value, height_meters
seems to be an array.
var_name
in the logs I saw was wind_from_direction
, so we are calling .loc
with a single string. According to the Pandas docs:
Note this returns the row as a Series
I'd assume that's why this is blowing up. But I have no idea.
@JackKelly could you look into this? I tried, but I really don't understand the code π
I'll try to make time to look at this next week
On Wed, 17 Jun 2020, 12:56 Flo, notifications@github.com wrote:
@JackKelly https://github.com/JackKelly could you look into this? I tried, but I really don't understand the code π
β You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openclimatefix/metoffice_ec2/issues/42#issuecomment-645329138, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADQPVBYZVJT6N56REGLXUTRXCVNPANCNFSM4OAQQJZA .
OK, I couldn't keep away from the code!
oops, sorry, dumb mistake! The latest commit should fix this.
The short term solution to prevent all these dumb mistakes from slipping through the net is for me to set up my local machine to access our OCF AWS account, so I can test the script locally.
@JackKelly yeah I think that's best, I will hook you up. π
Thanks for fixing so quickly!