Changeset 4eac427 in sasmodels
- Timestamp:
- Nov 20, 2015 3:10:38 PM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- be18d1f
- Parents:
- 29fc2a3
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/generate.py
r3c56da87 r4eac427 247 247 """ 248 248 249 def format_units(par): 250 return RST_UNITS.get(par, par) 251 249 252 def make_partable(pars): 250 253 """ … … 255 258 max(len(p[0]) for p in pars), 256 259 max(len(p[-1]) for p in pars), 257 max(len( RST_UNITS[p[1]]) for p in pars),260 max(len(format_units(p[1])) for p in pars), 258 261 PARTABLE_VALUE_WIDTH, 259 262 ] … … 271 274 "%-*s" % (column_widths[0], p[0]), 272 275 "%-*s" % (column_widths[1], p[-1]), 273 "%-*s" % (column_widths[2], RST_UNITS[p[1]]),276 "%-*s" % (column_widths[2], format_units(p[1])), 274 277 "%*g" % (column_widths[3], p[2]), 275 278 ]))
Note: See TracChangeset
for help on using the changeset viewer.