Skip to content

Commit a8fdf33

Browse files
authored
MNT #153
1 parent 24d88ef commit a8fdf33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apstools/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def dictionary_table(dictionary, fmt="simple"):
123123
return _t.reST(fmt=fmt)
124124

125125

126-
def print_RE_md(dictionary=RE.md, fmt="simple"):
126+
def print_RE_md(dictionary=None, fmt="simple"):
127127
"""
128128
custom print the RunEngine metadata in a table
129129
@@ -152,6 +152,8 @@ def print_RE_md(dictionary=RE.md, fmt="simple"):
152152
======================== ===================================
153153
154154
"""
155+
global RE
156+
dictionary = dictionary or RE.md
155157
md = dict(dictionary) # copy of input for editing
156158
v = dictionary_table(md["versions"], fmt=fmt) # sub-table
157159
md["versions"] = str(v).rstrip()

0 commit comments

Comments
 (0)