From c0318137213c955167da96fc6e36dc3a7b0017a5 Mon Sep 17 00:00:00 2001 From: Adibvafa Fallahpour <90617686+Adibvafa@users.noreply.github.com> Date: Thu, 5 Oct 2023 19:16:15 -0400 Subject: [PATCH 1/3] Create __init__.py The following code fails because 'tasks' will be loaded as 'tasks.py' file instead of the directory containing 'mortalitiy_prediction'. from cyclops.tasks.mortality_prediction import MortalityPredictionTask Signed-off-by: Adibvafa Fallahpour <90617686+Adibvafa@users.noreply.github.com> --- cyclops/tasks/__init__.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 cyclops/tasks/__init__.py diff --git a/cyclops/tasks/__init__.py b/cyclops/tasks/__init__.py new file mode 100644 index 000000000..cc8894c5d --- /dev/null +++ b/cyclops/tasks/__init__.py @@ -0,0 +1 @@ +"""Tasks package.""" From a309bd3b753bcdd89ebf006152a99ae1a04be8e5 Mon Sep 17 00:00:00 2001 From: Adibvafa Fallahpour <90617686+Adibvafa@users.noreply.github.com> Date: Thu, 5 Oct 2023 21:53:57 -0400 Subject: [PATCH 2/3] Update __init__.py Added new imports. Signed-off-by: Adibvafa Fallahpour <90617686+Adibvafa@users.noreply.github.com> --- cyclops/tasks/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cyclops/tasks/__init__.py b/cyclops/tasks/__init__.py index cc8894c5d..a0db52c40 100644 --- a/cyclops/tasks/__init__.py +++ b/cyclops/tasks/__init__.py @@ -1 +1,3 @@ """Tasks package.""" +from cyclops.tasks.mortality_prediction import MortalityPredictionTask +from cyclops.tasks.cxr_classification import CXRClassificationTask From 9b03aeb8a960d9377284f274fdf4818fa93a1e25 Mon Sep 17 00:00:00 2001 From: Amrit K Date: Fri, 6 Oct 2023 09:41:16 -0400 Subject: [PATCH 3/3] Apply ruff formatting fix --- cyclops/tasks/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyclops/tasks/__init__.py b/cyclops/tasks/__init__.py index a0db52c40..a008fb876 100644 --- a/cyclops/tasks/__init__.py +++ b/cyclops/tasks/__init__.py @@ -1,3 +1,3 @@ """Tasks package.""" -from cyclops.tasks.mortality_prediction import MortalityPredictionTask from cyclops.tasks.cxr_classification import CXRClassificationTask +from cyclops.tasks.mortality_prediction import MortalityPredictionTask