Changeset e3571cb in sasmodels for sasmodels/data.py
- Timestamp:
- Oct 21, 2017 8:57:43 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:
- 2bccb5a
- Parents:
- 6773b02
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/data.py
rfbb9397 re3571cb 363 363 if hasattr(data, 'isSesans') and data.isSesans: 364 364 _plot_result_sesans(data, None, None, use_data=True, limits=limits) 365 elif hasattr(data, 'qx_data') :365 elif hasattr(data, 'qx_data') and not getattr(data, 'radial', False): 366 366 _plot_result2D(data, None, None, view, use_data=True, limits=limits) 367 367 else: … … 391 391 if hasattr(data, 'isSesans') and data.isSesans: 392 392 _plot_result_sesans(data, theory, resid, use_data=True, limits=limits) 393 elif hasattr(data, 'qx_data') :393 elif hasattr(data, 'qx_data') and not getattr(data, 'radial', False): 394 394 _plot_result2D(data, theory, resid, view, use_data, limits=limits) 395 395 else: … … 425 425 import matplotlib.pyplot as plt # type: ignore 426 426 from numpy.ma import masked_array, masked # type: ignore 427 428 if getattr(data, 'radial', False): 429 radial_data.x = radial_data.q_data 430 radial_data.y = radial_data.data 427 431 428 432 use_data = use_data and data.y is not None
Note: See TracChangeset
for help on using the changeset viewer.