Changeset 2a2af47 in sasview for sansview/perspectives/fitting/fitting.py
- Timestamp:
- Sep 18, 2009 11:36:17 AM (15 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- aaea3714
- Parents:
- 09fe12d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
r6ced1cc r2a2af47 278 278 @param return 279 279 """ 280 281 280 id=None 282 283 281 if hasattr(item,"id"): 284 282 id = copy.deepcopy(item.id) 285 286 283 287 284 data= Data1D(x=item.x, y=item.y,dx=None, dy=None) 288 data.copy_from_datainfo(item) 285 data.copy_from_datainfo(item) 289 286 item.clone_without_data(clone=data) 290 287 data.dy=dy 291 288 data.name = item.name 292 293 289 ## allow to highlight data when plotted 294 290 data.interactive = copy.deepcopy(item.interactive) 295 291 ## when 2 data have the same id override the 1 st plotted 296 292 data.id = id 297 298 293 data.group_id = item.group_id 299 294 return data
Note: See TracChangeset
for help on using the changeset viewer.