"csst_dag/cli/csst_cpic_l1.py" did not exist on "e4b77553bb87fce396734372269cccd3f92be40f"
Commit 6ff01013 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

fixed no data bug in filtering

parent c80267f5
...@@ -87,6 +87,12 @@ class BaseDAG: ...@@ -87,6 +87,12 @@ class BaseDAG:
keys=self.pattern.colnames, keys=self.pattern.colnames,
join_type="inner", join_type="inner",
) )
if len(filtered_data_basis) == 0:
print(">>> Input plan basis:")
plan_basis.pprint()
print(">>> Input data basis:")
data_basis.pprint()
raise ValueError("No data found for the given pattern.")
u_data_basis = table.unique(filtered_data_basis["dataset", "obs_id"]) u_data_basis = table.unique(filtered_data_basis["dataset", "obs_id"])
if len(u_data_basis) == 0: if len(u_data_basis) == 0:
filtered_plan_basis = plan_basis[:0] filtered_plan_basis = plan_basis[:0]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment