@@ -127,13 +127,14 @@ <h1>Source code for diffpy.utils.parsers.serialization</h1><div class="highlight
127127< span class ="sd "> data_table: list or ndarray</ span >
128128< span class ="sd "> Data table.</ span >
129129< span class ="sd "> dt_colnames: list</ span >
130- < span class ="sd "> Names of each column in data_table. Every name in data_table_cols will be put into the Dictionary as a key with</ span >
131- < span class ="sd "> a value of that column in data_table (stored as a List). Put None for columns without names. If dt_cols has less</ span >
132- < span class ="sd "> non-None entries than columns in data_table, the pair {'data table': data_table} will be put in the dictionary.</ span >
130+ < span class ="sd "> Names of each column in data_table. Every name in data_table_cols will be put into the Dictionary</ span >
131+ < span class ="sd "> as a key with a value of that column in data_table (stored as a List). Put None for columns</ span >
132+ < span class ="sd "> without names. If dt_cols has less non-None entries than columns in data_table,</ span >
133+ < span class ="sd "> the pair {'data table': data_table} will be put in the dictionary.</ span >
133134< span class ="sd "> (Default None: only entry {'data table': data_table} will be added to dictionary.)</ span >
134135< span class ="sd "> show_path: bool</ span >
135- < span class ="sd "> include a path element in the database entry (default True). If 'path' is not included in hddata, extract path </ span >
136- < span class ="sd "> from filename.</ span >
136+ < span class ="sd "> include a path element in the database entry (default True). If 'path' is not included in hddata,</ span >
137+ < span class ="sd "> extract path from filename.</ span >
137138< span class ="sd "> serial_file</ span >
138139< span class ="sd "> Serial language file to dump dictionary into. If None (defualt), no dumping will occur.</ span >
139140
@@ -279,7 +280,7 @@ <h1>Source code for diffpy.utils.parsers.serialization</h1><div class="highlight
279280
280281 < span class ="k "> if</ span > < span class ="nb "> len</ span > < span class ="p "> (</ span > < span class ="n "> return_dict</ span > < span class ="p "> )</ span > < span class ="o "> ==</ span > < span class ="mi "> 0</ span > < span class ="p "> :</ span >
281282 < span class ="n "> warnings</ span > < span class ="o "> .</ span > < span class ="n "> warn</ span > < span class ="p "> (</ span >
282- < span class ="sa " > f </ span > < span class =" s2 "> "Loaded dictionary is empty. Possibly due to improper file type."</ span > < span class ="p "> ,</ span >
283+ < span class ="s2 "> "Loaded dictionary is empty. Possibly due to improper file type."</ span > < span class ="p "> ,</ span >
283284 < span class ="ne "> RuntimeWarning</ span > < span class ="p "> ,</ span >
284285 < span class ="p "> )</ span >
285286
0 commit comments