Changeset eadf1f9 in sasview


Ignore:
Timestamp:
Mar 12, 2010 12:34:49 PM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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:
3cd95c8
Parents:
ded62ce
Message:

added calling qmap converter

Location:
DataLoader/readers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/readers/IgorReader.py

    rfe78c7b readf1f9  
    2121import math, logging 
    2222from DataLoader.data_info import Data2D, Detector 
     23from DataLoader.manipulations import reader2D_converter 
    2324 
    2425# Look for unit converter 
     
    151152                isCenter = False                 
    152153                line_toks = line.split() 
    153                 # Center in bin number 
    154                 center_x = float(line_toks[0]) 
    155                 center_y = float(line_toks[1]) 
     154                 
     155                # Center in bin number: Must substrate 1 because the index starts from 1 
     156                center_x = float(line_toks[0])-1 
     157                center_y = float(line_toks[1])-1 
    156158 
    157159            if line.count("BCENT")>0: 
     
    292294        # Store loading process information 
    293295        output.meta_data['loader'] = self.type_name 
     296        output = reader2D_converter(output) 
     297 
    294298        return output 
    295299     
  • DataLoader/readers/danse_reader.py

    rfe78c7b readf1f9  
    2323import logging 
    2424from DataLoader.data_info import Data2D, Detector 
     25from DataLoader.manipulations import reader2D_converter 
    2526 
    2627# Look for unit converter 
     
    278279            # Store loading process information 
    279280            output.meta_data['loader'] = self.type_name     
     281            output = reader2D_converter(output) 
    280282            return output 
    281283         
Note: See TracChangeset for help on using the changeset viewer.