Skip to content

Commit

Permalink
style: Log adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Jan 23, 2025
1 parent a6fb87b commit f85b941
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
15 changes: 2 additions & 13 deletions viewer/cset_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,9 @@ def set_mol(
)

insp = mol.GetProp("ref_mols")
logger.info("Handling ref_mols value of '%s'", insp)
insp = insp.split(",")
insp = [i.strip() for i in insp]
insp_frags = []
logger.info("Iterating through insp %s", insp)
for i in insp:
# try exact match first
try:
Expand Down Expand Up @@ -532,9 +530,6 @@ def set_mol(
small_enough = False
break
if small_enough:
logger.info(
"Adding 'similar' molecule to existing ComputedMolecule %s", k
)
existing_computed_molecules.append(k)

if len(existing_computed_molecules) == 1:
Expand All @@ -550,7 +545,7 @@ def set_mol(
exist.delete()
computed_molecule = ComputedMolecule(name=name)
else:
logger.info("Creating new ComputedMolecule")
logger.info("Creating new ComputedMolecule (name=%s)", name)
computed_molecule = ComputedMolecule(name=name)

if isinstance(ref_so, SiteObservation):
Expand All @@ -563,7 +558,7 @@ def set_mol(
lhs_so = None

# I don't quite understand why the overwrite of existing
# compmol.. but this is how it was, not touching it now
# compmol ... but this is how it was, not touching it now
# update: I think it's about updating metadata. moving
# name attribute out so it won't get overwritten
computed_molecule.compound = compound
Expand Down Expand Up @@ -680,12 +675,6 @@ def process_mol(
if skip_mol:
logger.warning("Skipping molecule '%s'", molecule_name)
else:
logger.info(
"Calling set_mol() (name=%s target=%s compund_set=%s)...",
molecule_name,
target,
compound_set,
)
cpd = self.set_mol(
mol, target, compound_set, filename, zfile, zfile_hashvals
)
Expand Down
4 changes: 2 additions & 2 deletions viewer/squonk_job_file_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def validate_file_transfer_files(
)

logger.info(
"+ Validated proteins (SiteObservations) [%d]",
"- Validated proteins (SiteObservations) [%d]",
len(protein_files),
)

Expand All @@ -180,7 +180,7 @@ def validate_file_transfer_files(
)

logger.info(
"+ Validated compounds (SiteObservations) [%d]",
"- Validated compounds (SiteObservations) [%d]",
len(compound_files),
)

Expand Down

0 comments on commit f85b941

Please sign in to comment.