Ignore:
Timestamp:
Jun 5, 2009 9:08:48 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:
410aad8
Parents:
7d8094b
Message:

guiframe: modified the dataFitting.Data1D to be a child class of DataLoader?.data_info.Data1D, as was originally designed. Added lots of TODOs for refactoring. Inserted a call to bridge the data of the newly defined Data1D to the output of DataLoader?. The data_loader module needs a lot of work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/plotting/Plotter1D.py

    r8068b52 r1abcb04  
    419419        """ 
    420420            Save 1D  Data to  XML file 
     421             
     422            TODO: Refactor and remove this method. See TODO in _onSave. 
     423             
    421424            @param evt: Menu event 
    422425        """ 
     
    439442        """ 
    440443            Save file as txt 
     444             
     445            TODO: Refactor and remove this method. See TODO in _onSave. 
    441446        """ 
    442447        data = self.plots[self.graph.selected_plottable] 
     
    495500                path = dlg.GetPath() 
    496501                mypath = os.path.basename(path) 
     502                 
     503                #TODO: This is bad design. The DataLoader is designed to recognize extensions. 
     504                # It should be a simple matter of calling the .save(file, data, '.xml') method 
     505                # of the DataLoader.loader.Loader class.  
     506                 
    497507                if os.path.splitext(mypath)[1].lower() ==".txt": 
    498508                    self._onsaveTXT(path) 
Note: See TracChangeset for help on using the changeset viewer.