Skip to content
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

fix(prediction_job_by_class): base_dynclass sub_class logic bug fix #1094

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/tno/predict_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def run_prediction_by_class(
Returns:
None
"""
if base_dynclass or sub_class is None:
if base_dynclass is None and sub_class is None:
print("Please provide a base or sub dynamical class")
return

Expand All @@ -200,6 +200,7 @@ def run_prediction_by_class(
objects = get_asteroids_by_dynclass(admin_db_engine, dynclass=input_list)
else:
input_list = [item.strip() for item in base_dynclass.split(",")]
print(input_list)
objects = get_asteroids_by_base_dynclass(
admin_db_engine, base_dynclass=input_list
)
Expand Down
Loading