Skip to content

Commit 062b8b4

Browse files
Merge pull request #1286 from NASA-IMPACT/update_tdamm_classification
specify exact collections on which to run TDAMM classifications
2 parents 7b7f5f4 + 80fede8 commit 062b8b4

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

sde_collections/models/collection.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -691,12 +691,17 @@ def generate_inference_job(self, classification_type):
691691

692692
def queue_necessary_classifications(self):
693693
"""Check if collection needs classification and queue jobs if needed"""
694-
695-
# Determine which classifications are needed
696-
if self.division == Divisions.ASTROPHYSICS:
694+
tdamm_collections = [
695+
"imagine_the_universe",
696+
"physics_of_the_cosmos",
697+
"stsci_space_telescope_science_institute",
698+
]
699+
if self.config_folder in tdamm_collections:
697700
self.generate_inference_job(ClassificationType.TDAMM)
698-
elif self.division == Divisions.GENERAL:
699-
self.generate_inference_job(ClassificationType.DIVISION)
701+
# if self.division == Divisions.ASTROPHYSICS:
702+
# self.generate_inference_job(ClassificationType.TDAMM)
703+
# elif self.division == Divisions.GENERAL:
704+
# self.generate_inference_job(ClassificationType.DIVISION)
700705
else:
701706
# No classification needed, proceed directly to migration
702707
migrate_dump_to_delta_and_handle_status_transistions.delay(self.id)

0 commit comments

Comments
 (0)