Changeset b6627d9 in sasview for src/sas/calculator/sas_gen.py


Ignore:
Timestamp:
Mar 4, 2015 1:02:23 PM (9 years ago)
Author:
Doucet, Mathieu <doucetm@…>
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:
7cd87c2
Parents:
5a7d933
Message:

pylint fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/calculator/sas_gen.py

    re3f77d8b rb6627d9  
     1# pylint: disable=invalid-name 
    12""" 
    23SAS generic computation and sld file readers 
     
    910import os 
    1011import copy 
     12import sys 
     13import logging 
    1114 
    1215MFACTOR_AM = 2.853E-12 
     
    285288                mask = (x_dir2 + y_dir2 + z_dir2) <= 1.0 
    286289            except: 
    287                 pass 
     290                logging.error(sys.exc_value) 
    288291        self.output = MagSLD(self.pos_x[mask], self.pos_y[mask], 
    289292                             self.pos_z[mask], self.sld_n[mask], 
     
    394397                except: 
    395398                    # Skip non-data lines 
    396                     pass 
     399                    logging.error(sys.exc_value) 
    397400                #Reading Header; Segment count ignored 
    398401                s_line = line.split(":", 1) 
     
    589592                        z_lines.append(z_line) 
    590593                except: 
    591                     pass 
     594                    logging.error(sys.exc_value) 
    592595 
    593596            output = MagSLD(pos_x, pos_y, pos_z, sld_n, sld_mx, sld_my, sld_mz) 
     
    683686                    except: 
    684687                        # Skip non-data lines 
    685                         pass 
     688                        logging.error(sys.exc_value) 
    686689            output = MagSLD(pos_x, pos_y, pos_z, sld_n, 
    687690                            sld_mx, sld_my, sld_mz) 
     
    10371040 
    10381041def test_load(): 
     1042    """ 
     1043        Test code 
     1044    """ 
    10391045    from sas.plottools.arrow3d import Arrow3D 
    10401046    current_dir = os.path.abspath(os.path.curdir) 
     
    10831089    ax.add_artist(a) 
    10841090    plt.show() 
     1091 
    10851092def test(): 
     1093    """ 
     1094        Test code 
     1095    """ 
    10861096    current_dir = os.path.abspath(os.path.curdir) 
    10871097    for i in range(3): 
Note: See TracChangeset for help on using the changeset viewer.