Commit 00c32fdb authored by Kennedy, Joseph H's avatar Kennedy, Joseph H
Browse files

A little PEP8 Cleanup of smb_icecores

parent f4d46cda
......@@ -49,12 +49,11 @@ from __future__ import absolute_import, division, print_function, unicode_litera
import os
import argparse
import livvkit
from livvkit.util import elements as EL
from livvkit.util import functions as FN
from livvkit.util import elements as el
from livvkit.util import functions as fn
with FN.temp_sys_path(os.path.dirname(__file__)):
with fn.temp_sys_path(os.path.dirname(__file__)):
import smb.utils as utils
import smb.preproc_zwally as zwally
......@@ -87,7 +86,7 @@ def run(name, config):
img_dir = os.path.join(livvkit.output_dir, 'validation', 'imgs', name)
config_arg_list = []
for key, val in config.items():
......@@ -121,16 +120,16 @@ def run(name, config):
element_list = ['Figures', img_list)]
element_list = ['Figures', img_list)]
ref_bib = utils.bib2html(config['References'])
element_list.append(EL.html(' '.join(['<div class="references"><h3>References</h3>',
element_list.append(el.html(' '.join(['<div class="references"><h3>References</h3>',
'If you use this LIVVkit extension for any part of your',
'modeling or analyses, please cite:' + ref_bib + '</div>',
return, __doc__, element_list)
return, __doc__, element_list)
def print_summary(summary):
......@@ -155,9 +154,9 @@ def populate_metadata():
raise NotImplementedError
def rel_base_path(file):
file = os.path.relpath(os.path.join(base_path, file))
return file
def rel_base_path(_file):
_file = os.path.relpath(os.path.join(base_path, _file))
return _file
def parse_args(args=None):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment