Skip to content

Commit

Permalink
black applied.
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol committed Nov 30, 2024
1 parent dbfc89d commit fe1739e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions quantmsutils/mzml/mzml_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,8 @@ def batch_write_bruker_d(file_name: str, output_path: str, batch_size: int = 100
if "MonoisotopicMz" in columns:
base_columns.insert(-1, "MonoisotopicMz")

query = f"""
SELECT
{', '.join(base_columns)}
FROM frames
"""
safe_columns = [col for col in base_columns if col.replace(" ", "").isalnum()] # Remove spaces
query = f"""SELECT {', '.join(safe_columns)} FROM frames """

try:
# Stream data in batches
Expand Down

0 comments on commit fe1739e

Please sign in to comment.