Changeset e3775c6 in sasview for src/sas


Ignore:
Timestamp:
Dec 19, 2017 11:59:42 AM (7 years ago)
Author:
krzywon
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
fa749b7
Parents:
a32c19c
Message:

Use startswith instead of count for line matching in ABS reader.

File:
1 edited

Legend:

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

    ra32c19c re3775c6  
    209209            # USANS Data: 
    210210            # EMP LEVEL: <value> ; BKG LEVEL: <value> 
    211             if line.count("The 6 columns") > 0 or line.count("EMP LEVEL"): 
     211            if line.startswith("The 6 columns") or line.startswith("EMP LEVEL"): 
    212212                is_data_started = True 
    213213 
Note: See TracChangeset for help on using the changeset viewer.