Changeset e65c3ba in sasmodels for sasmodels/compare.py
- Timestamp:
- Nov 28, 2017 4:09:34 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 32398dc
- Parents:
- 110f69c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
r110f69c re65c3ba 944 944 # work with trimmed data, not the full set 945 945 sorted_err = np.sort(abs(err.compressed())) 946 if len(sorted_err) == 0 .:946 if len(sorted_err) == 0: 947 947 print(label + " no valid values") 948 948 return … … 1081 1081 ] 1082 1082 1083 NAME_OPTIONS = set(k for k in OPTIONS if not k.endswith('='))1084 VALUE_OPTIONS = [k[:-1] for k in OPTIONS if k.endswith('=')]1083 NAME_OPTIONS = (lambda: set(k for k in OPTIONS if not k.endswith('=')))() 1084 VALUE_OPTIONS = (lambda: [k[:-1] for k in OPTIONS if k.endswith('=')])() 1085 1085 1086 1086 … … 1174 1174 name = positional_args[-1] 1175 1175 1176 # pylint: disable=bad-whitespace 1176 # pylint: disable=bad-whitespace,C0321 1177 1177 # Interpret the flags 1178 1178 opts = { … … 1265 1265 elif arg == '-html': opts['html'] = True 1266 1266 elif arg == '-help': opts['html'] = True 1267 # pylint: enable=bad-whitespace 1267 # pylint: enable=bad-whitespace,C0321 1268 1268 1269 1269 # Magnetism forces 2D for now … … 1464 1464 show html docs for the model 1465 1465 """ 1466 import os1467 1466 from .generate import make_html 1468 1467 from . import rst2html … … 1499 1498 signal.update_parameters(problem) 1500 1499 frame.Bind(wx.EVT_TOOL, _reset_parameters, frame.ToolBar.GetToolByPos(1)) 1501 if is_mac: frame.Show() 1500 if is_mac: 1501 frame.Show() 1502 1502 # If running withing an app, start the main loop 1503 1503 if app:
Note: See TracChangeset
for help on using the changeset viewer.