Changeset 8e15dce in sasview for src/sas/sasgui


Ignore:
Timestamp:
May 10, 2017 9:39:17 AM (7 years ago)
Author:
krzywon
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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
e0ebd56
Parents:
914c49d5
Message:

Modified manipulations to clarify what is needed. Save sliced data as txt by default, instead of xml, to speed up data process. numpy → np.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/local_perspectives/plotting/parameters_panel_slicer.py

    r3e5648b r8e15dce  
    193193                                           name="Append to file name:") 
    194194            append_tool_tip = "Files will be saved as <SlicerType><FileName>" 
    195             append_tool_tip += "<AppendToText>.xml" 
     195            append_tool_tip += "<AppendToText>.txt" 
    196196            self.append_name.SetToolTipString(append_tool_tip) 
    197197            self.append_name.SetValue(self.default_value) 
     
    417417                        data_dic[item] = plot.plots[item] 
    418418 
    419         # Save files as XML 
     419        # Save files as Text 
    420420        for item, data1d in data_dic.iteritems(): 
    421421            base = '.'.join(item.split('.')[:-1]) 
    422             file_name = base + append + ".xml" 
     422            file_name = base + append + ".txt" 
    423423            save_to = evt.path + "\\" + file_name 
    424424            writer.write(save_to, data1d) 
     
    439439        :param file_list: list of loaded file names to send to fit 
    440440        """ 
    441         if fit != FIT_OPTIONS[0] and file_list is not None: 
     441        if fit in FIT_OPTIONS and fit != FIT_OPTIONS[0] and \ 
     442                        file_list is not None: 
    442443            # Set perspective to fitting 
    443444            int = self.data_panel.perspective_cbox.FindString("Fitting") 
Note: See TracChangeset for help on using the changeset viewer.