openclimatefix / metoffice_ec2

Subset Met Office MOGREPS-UK and UKV on AWS EC2
MIT License
11 stars 2 forks source link

load_subset_and_save_data() missing 1 required positional argument #40

Closed flowirtz closed 4 years ago

flowirtz commented 4 years ago
2020-06-11 17:18:24,361 - metoffice_ec2 - ERROR - load_subset_and_save_data() missing 1 required positional argument: 's3' Traceback (most recent call last):

File "scripts/ec2.py", line 130, in loop
load_subset_and_save_data(mo_message, s3) TypeError: load_subset_and_save_data() missing 1 required positional argument: 's3'

This is triggered from this code snippet: https://github.com/openclimatefix/metoffice_ec2/blob/360e3c71818761032a8c112700018e0b44443c87/scripts/ec2.py#L130

whereas the definition is: https://github.com/openclimatefix/metoffice_ec2/blob/360e3c71818761032a8c112700018e0b44443c87/scripts/ec2.py#L78

I didn't see where to get the height from, otherwise I would have fixed it myself.