Skip to content

Commit

Permalink
- Cosine distance
Browse files Browse the repository at this point in the history
  • Loading branch information
frapercan committed Feb 12, 2025
1 parent 426c1af commit 74a9b61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fantasia/src/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,11 @@ def store_entry(self, annotations):
# Guardar en CSV
results_path = self.results_path
if os.path.exists(results_path) and os.path.getsize(results_path) > 0:
df.to_csv(self.results_path, mode='a', index=False, header=False)
self.logger.info(f"Appended {len(go_terms)} entries to {results_path}.")
df.to_csv(results_path, mode='a', index=False, header=False)
else:
df.to_csv(results_path, mode='w', index=False, header=True)
self.logger.info(f"Created new file and stored {len(go_terms)} entries in {results_path}.")

self.logger.info(f"Stored {len(df)} collapsed entries.")

except Exception as e:
self.logger.error(f"Error storing results in CSV: {e}")
Expand Down

0 comments on commit 74a9b61

Please sign in to comment.