Skip to content

Commit

Permalink
fixes flake8 for superdsm
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin committed Nov 15, 2023
1 parent ab275fd commit de07e01
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tools/superdsm/run-superdsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
"""

import argparse
import csv
import imghdr
import os
import pathlib
import shutil
import tempfile
import io
import csv


hyperparameters = [
Expand Down Expand Up @@ -46,6 +45,7 @@ def create_config(args):
cfg[key] = value
return cfg


def flatten_dict(d, sep='/'):
result = {}
for key, val in d.items():
Expand Down Expand Up @@ -99,9 +99,6 @@ def flatten_dict(d, sep='/'):

if args.do_cfg:
print(f'Writing config to: {args.do_cfg}')
#cfg_buf = io.StringIO()
#cfg.dump_json(cfg_buf)
#cfg_json = json.loads(cfg_buf.get_value())
with open(args.do_cfg, 'w') as fp:
tsv_out = csv.writer(fp, delimiter='\t')
tsv_out.writerow(['Hyperparameter', 'Value'])
Expand Down

0 comments on commit de07e01

Please sign in to comment.