Skip to content

Commit

Permalink
fix: Hack SIteObservation search (job execution experiment)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Jan 15, 2025
1 parent 8dba028 commit 340ad6b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions viewer/cset_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,17 @@ def set_mol(
)
ref = site_obvs
except SiteObservation.DoesNotExist:
search_code = i.split(":")[0].split("_")[0]
# Super hack - for Squonk Job execution tests.
# The ref_mols field doesn't work - so I'll have the actual codes
# for the mols used in the Job...
if i == "A71EV2A-x0202_A_147_1_A71EV2A-x3977+A+202+1_LIG":
search_code = "A0202a"
elif i == "A71EV2A-x0202_A_147_1_A71EV2A-x3977+A+202+1_LIG":
search_code = "A0202b"
else:
search_code = i.split(":")[0].split("_")[0]
logger.warning(
"Search for '%s' failed - now looking for '%s', target=%s...",
"Search for '%s' failed - now looking for '%s' (target=%s)...",
i,
search_code,
compound_set.target,
Expand Down

0 comments on commit 340ad6b

Please sign in to comment.