Skip to content

Commit

Permalink
make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sinhaharsh committed Dec 8, 2023
1 parent 95dddfd commit 6fd4667
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions mrQA/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def configure_logger(log, output_dir, mode='w', level='WARNING'):
DATE_FORMAT = '%m_%d_%Y'
Unspecified = UnspecifiedType()


def past_records_fpath(folder):
"""Constructs the path to the past record file"""
return Path(folder / 'past_record.txt')
Expand Down
9 changes: 3 additions & 6 deletions mrQA/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@
from collections import Counter
from datetime import datetime, timedelta, timezone
from email import encoders
from email.message import EmailMessage
from email.mime.application import MIMEApplication
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from itertools import takewhile
from os.path import basename
from pathlib import Path
from smtplib import SMTP, SMTPServerDisconnected
from smtplib import SMTP
from subprocess import run, CalledProcessError, TimeoutExpired, Popen
from typing import Union, List, Optional, Any, Iterable, Sized

Expand Down Expand Up @@ -1141,8 +1138,8 @@ def log_latest_non_compliance(dataset, config_path,
# there is no new non-compliant data
return False
with open(status_filepath, 'w', encoding='utf-8') as fp:
fp.write(f"Scan Date, Dataset Name, Sequence Name,"
f" Subject ID, Parameter\n")
fp.write("Scan Date, Dataset Name, Sequence Name,"
" Subject ID, Parameter\n")
for parameter in nc_log:
for i in nc_log[parameter]:
fp.write(f" {i['date']}, {ds_name}, {i['sequence_name']},"
Expand Down

0 comments on commit 6fd4667

Please sign in to comment.