Changeset 849094a in sasview for src/sas/sascalc/dataloader


Ignore:
Timestamp:
Sep 22, 2017 5:07:32 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
8641070
Parents:
af3e9f5
Message:

use decoded stream for sesans reader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/dataloader/readers/sesans_reader.py

    r574adc7 r849094a  
    4444        self.output = [] 
    4545 
    46         line = self.f_open.readline() 
     46        line = self.nextline() 
    4747        params = {} 
    4848        while not line.startswith("BEGIN_DATA"): 
     
    5050            if len(terms) >= 2: 
    5151                params[terms[0]] = " ".join(terms[1:]) 
    52             line = self.f_open.readline() 
     52            line = self.nextline() 
    5353        self.params = params 
    5454 
     
    7070                               "handled by other software.") 
    7171 
    72         headers = self.f_open.readline().split() 
     72        headers = self.nextline().split() 
    7373 
    7474        self._insist_header(headers, "SpinEchoLength") 
Note: See TracChangeset for help on using the changeset viewer.