Changeset 7d8094b in sasview for DataLoader/readers


Ignore:
Timestamp:
Jun 5, 2009 8:56:17 PM (15 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
1abcb04
Parents:
1b69256
Message:

dataloader: allow for input to write to be child class. Modify clone_without_data to receive a Data1D (or child of Data1D) as an input.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/readers/cansas_reader.py

    rb3de3a45 r7d8094b  
    603603        """ 
    604604         
    605         if not datainfo.__class__ == Data1D:  
     605        if not issubclass(datainfo.__class__, Data1D): 
    606606            raise RuntimeError, "The cansas writer expects a Data1D instance" 
    607607         
Note: See TracChangeset for help on using the changeset viewer.