Changeset 149b8f6 in sasview for src/sas/sascalc


Ignore:
Timestamp:
Apr 10, 2017 11:03:10 AM (8 years ago)
Author:
Adam Washington <adam.washington@…>
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:
a67c494
Parents:
4b5f2657
Message:

Better pep8 in sesans_reader

File:
1 edited

Legend:

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

    rf6c2555 r149b8f6  
    9696                        data.shape[1])) 
    9797 
    98             if data.size < 1: 
     98            if not data.size: 
    9999                raise RuntimeError("{} is empty".format(path)) 
    100100            x = data[:, headers.index("SpinEchoLength")] 
     
    102102                dx = data[:, headers.index("SpinEchoLength_error")] 
    103103            else: 
    104                 dx = x*0.05 
     104                dx = x * 0.05 
    105105            lam = data[:, headers.index("Wavelength")] 
    106106            if "Wavelength_error" in headers: 
    107107                dlam = data[:, headers.index("Wavelength_error")] 
    108108            else: 
    109                 dlam = lam*0.05 
     109                dlam = lam * 0.05 
    110110            y = data[:, headers.index("Depolarisation")] 
    111111            dy = data[:, headers.index("Depolarisation_error")] 
Note: See TracChangeset for help on using the changeset viewer.