Changeset b99ac227 in sasview for DataLoader/data_info.py
- Timestamp:
- Aug 6, 2008 10:54:02 AM (16 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:
- 17a6843
- Parents:
- 99d1af6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/data_info.py
r99d1af6 rb99ac227 14 14 project funded by the US National Science Foundation. 15 15 16 See the license text in license.txt 16 If you use DANSE applications to do scientific research that leads to 17 publication, we ask that you acknowledge the use of the software with the 18 following sentence: 19 20 "This work benefited from DANSE software developed under NSF award DMR-0520547." 17 21 18 22 copyright 2008, University of Tennessee … … 307 311 errors = [] 308 312 313 def __init__(self): 314 """ 315 Initialization 316 """ 317 ## Title 318 self.title = '' 319 ## Run number 320 self.run = None 321 ## File name 322 self.filename = '' 323 ## Notes 324 self.notes = [] 325 ## Processes (Action on the data) 326 self.process = [] 327 ## Instrument name 328 self.instrument = '' 329 ## Detector information 330 self.detector = [] 331 ## Sample information 332 self.sample = Sample() 333 ## Source information 334 self.source = Source() 335 ## Collimation information 336 self.collimation = [] 337 ## Additional meta-data 338 self.meta_data = {} 339 ## Loading errors 340 self.errors = [] 341 309 342 def __str__(self): 310 343 """ … … 429 462 430 463 def __init__(self, x, y, dx=None, dy=None): 464 DataInfo.__init__(self) 431 465 plottable_1D.__init__(self, x, y, dx, dy) 466 if len(self.detector)>0: 467 raise RuntimeError, "Data1D: Detector bank already filled at init" 468 432 469 433 470 def __str__(self): … … 553 590 554 591 def __init__(self, data=None, err_data=None): 592 DataInfo.__init__(self) 555 593 plottable_2D.__init__(self, data, err_data) 594 if len(self.detector)>0: 595 raise RuntimeError, "Data2D: Detector bank already filled at init" 556 596 557 597 def __str__(self):
Note: See TracChangeset
for help on using the changeset viewer.