Skip to content

Commit bfdb013

Browse files
authored
Merge branch 'dict-table_153' into custom-print-RE.md-153
2 parents 4e76d27 + 82820bb commit bfdb013

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apstools/utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
~ipython_profile_name
1515
~pairwise
1616
~print_snapshot_list
17+
~print_RE_md
1718
~text_encode
1819
~to_unicode_or_bust
1920
~trim_string_for_EPICS
@@ -77,7 +78,7 @@ def dictionary_table(dictionary, fmt="simple"):
7778
return a text table from ``dictionary``
7879
7980
PARAMETERS
80-
81+
8182
dictionary : dict
8283
Python dictionary
8384
fmt : str
@@ -90,14 +91,14 @@ def dictionary_table(dictionary, fmt="simple"):
9091
RETURNS
9192
9293
table : str or `None`
93-
multiline text with table in chosen format
94+
multiline text table with dictionary contents in chosen format
9495
or ``None`` if dictionary has no contents
9596
9697
EXAMPLE::
9798
9899
In [8]: RE.md
99100
Out[8]: {'login_id': 'jemian:wow.aps.anl.gov', 'beamline_id': 'developer', 'proposal_id': None, 'pid': 19072, 'scan_id': 10, 'version': {'bluesky': '1.5.2', 'ophyd': '1.3.3', 'apstools': '1.1.5', 'epics': '3.3.3'}}
100-
101+
101102
In [9]: print(dictionary_table(RE.md))
102103
=========== =============================================================================
103104
key value

0 commit comments

Comments
 (0)