From 6fa29b0308f73b88a1fa991ad748641b746aa498 Mon Sep 17 00:00:00 2001 From: David Rodriguez Date: Wed, 10 Jul 2024 12:38:57 -0400 Subject: [PATCH] Minor cleanup --- simple/utils/spectra.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/simple/utils/spectra.py b/simple/utils/spectra.py index bff481fbe..fd0c82a06 100644 --- a/simple/utils/spectra.py +++ b/simple/utils/spectra.py @@ -9,7 +9,6 @@ import sqlalchemy.exc from astrodb_utils import ( AstroDBError, - find_publication, find_source_in_db, internet_connection, ) @@ -152,8 +151,8 @@ def ingest_spectrum( mode=mode, ) if len(matches) > 0: - msg = f"Skipping suspected duplicate measurement: {source}\n" - msg2 = f"{matches}" f"{instrument, mode, obs_date, reference, spectrum} \n" + msg = f"Skipping suspected duplicate measurement: {source}" + msg2 = f"{matches} {instrument, mode, obs_date, reference, spectrum}" logger.warning(msg) logger.debug(msg2) flags["message"] = msg