Slackbot
01/23/2023, 9:27 AMElijah Ben Izzy
01/23/2023, 4:23 PMcf
btw? Is it another module?Elijah Ben Izzy
01/23/2023, 4:27 PMElijah Ben Izzy
01/23/2023, 4:45 PMShayenne Moura
01/23/2023, 4:59 PMWhat’sYes, it is another module. I saw your test code. Try to use the satellite_product variable inside the function and see if it raises the error. Mine is like this:btw? Is it another module?cf
def load_sat_data(satellite_product: str) -> pd.DataFrame:
data_path = s3.glob(f"{s3_path}/{satellite_product}*.parq")
return pd.read_parquet(f's3://{data_path[0]}')
Elijah Ben Izzy
01/23/2023, 5:08 PMShayenne Moura
01/23/2023, 5:14 PMTraceback (most recent call last):
File "stfeast/features/build_teff.py", line 46, in <module>
df_sat = dr.execute(output_columns)
File "/home/sm/envtest/lib/python3.8/site-packages/hamilton/driver.py", line 228, in execute
raise e
File "/home/sm/envtest/lib/python3.8/site-packages/hamilton/driver.py", line 221, in execute
outputs = self.raw_execute(final_vars, overrides, display_graph, inputs=inputs)
File "/home/sm/envtest/lib/python3.8/site-packages/hamilton/driver.py", line 293, in raw_execute
self.validate_inputs(
File "/home/sm/envtest/lib/python3.8/site-packages/hamilton/driver.py", line 193, in validate_inputs
raise ValueError(error_str)
ValueError: 1 errors encountered:
Error: Required input satellite_product not provided for nodes: ['load_sat_data'].
Shayenne Moura
01/23/2023, 5:15 PMElijah Ben Izzy
01/23/2023, 5:16 PMElijah Ben Izzy
01/23/2023, 5:17 PMElijah Ben Izzy
01/23/2023, 5:32 PM