Skip to content

Commit

Permalink
Merge pull request #940 from biorack/untargeted_dev
Browse files Browse the repository at this point in the history
Improve error logging during new project initiation
  • Loading branch information
bkieft-usa authored Oct 7, 2024
2 parents 5b4eabb + 7d72e5e commit 5ad3f20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metatlas/untargeted/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1568,11 +1568,11 @@ def write_metadata_per_new_project(df: pd.DataFrame,background_designator=[],raw
if department =='eb':
department = 'egsb'
if not department in ['jgi','egsb']:
logging.warning(tab_print("Warning! %s does not have a valid department name in the second field. Use --raw_data_subdir to provide a custom subdirectory for the raw data."%(project_name), 2))
logging.warning(tab_print("Warning! %s does not have a valid department name in the second field. Use --raw_data_subdir to provide a custom subdirectory for the raw data."%(parent_dir), 2))
continue
raw_data_subdir = department
except:
logging.warning(tab_print("Warning! %s does not have a valid department name in the second field. Use --raw_data_subdir to provide a custom subdirectory for the raw data."%(project_name), 2))
logging.warning(tab_print("Warning! %s does not have a valid department name in the second field. Use --raw_data_subdir to provide a custom subdirectory for the raw data."%(parent_dir), 2))
continue
full_mzml_path = os.path.join(raw_data_dir,raw_data_subdir,parent_dir)

Expand Down

0 comments on commit 5ad3f20

Please sign in to comment.