Changeset 3477478 in sasview for src/sas/plottools/PlotPanel.py


Ignore:
Timestamp:
Mar 5, 2015 12:38:29 PM (9 years ago)
Author:
Mathieu Doucet <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:
b9dbd6b
Parents:
2df0b74
Message:

pylint fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/plottools/PlotPanel.py

    r121f72c r3477478  
    4040        for a in obj.get_children(): show_tree(a, d + 1) 
    4141 
    42 from unitConverter import UnitConvertion as convertUnit 
     42from convert_units import convert_unit 
    4343 
    4444 
     
    17901790            if self.xLabel == "x^(2)": 
    17911791                item.transformX(transform.toX2, transform.errToX2) 
    1792                 xunits = convertUnit(2, xunits) 
     1792                xunits = convert_unit(2, xunits) 
    17931793                self.graph._xaxis_transformed("%s^{2}" % xname, "%s" % xunits) 
    17941794            if self.xLabel == "x^(4)": 
    17951795                item.transformX(transform.toX4, transform.errToX4) 
    1796                 xunits = convertUnit(4, xunits) 
     1796                xunits = convert_unit(4, xunits) 
    17971797                self.graph._xaxis_transformed("%s^{4}" % xname, "%s" % xunits) 
    17981798            if self.xLabel == "ln(x)": 
     
    18051805            if self.xLabel == "log10(x^(4))": 
    18061806                item.transformX(transform.toX4, transform.errToX4) 
    1807                 xunits = convertUnit(4, xunits) 
     1807                xunits = convert_unit(4, xunits) 
    18081808                self.graph._xaxis_transformed("%s^{4}" % xname, "%s" % xunits) 
    18091809                _xscale = 'log' 
     
    18201820            if self.yLabel == "y^(2)": 
    18211821                item.transformY(transform.toX2, transform.errToX2) 
    1822                 yunits = convertUnit(2, yunits) 
     1822                yunits = convert_unit(2, yunits) 
    18231823                self.graph._yaxis_transformed("%s^{2}" % yname, "%s" % yunits) 
    18241824            if self.yLabel == "1/y": 
    18251825                item.transformY(transform.toOneOverX, transform.errOneOverX) 
    1826                 yunits = convertUnit(-1, yunits) 
     1826                yunits = convert_unit(-1, yunits) 
    18271827                self.graph._yaxis_transformed("1/%s" % yname, "%s" % yunits) 
    18281828            if self.yLabel == "y*x^(4)": 
    18291829                item.transformY(transform.toYX4, transform.errToYX4) 
    1830                 xunits = convertUnit(4, self.xaxis_unit) 
     1830                xunits = convert_unit(4, self.xaxis_unit) 
    18311831                self.graph._yaxis_transformed("%s \ \ %s^{4}" % (yname, xname), 
    18321832                                              "%s%s" % (yunits, xunits)) 
     
    18341834                item.transformY(transform.toOneOverSqrtX, 
    18351835                                transform.errOneOverSqrtX) 
    1836                 yunits = convertUnit(-0.5, yunits) 
     1836                yunits = convert_unit(-0.5, yunits) 
    18371837                self.graph._yaxis_transformed("1/\sqrt{%s}" % yname, 
    18381838                                              "%s" % yunits) 
     
    18431843            if self.yLabel == "ln(y*x^(2))": 
    18441844                item.transformY(transform.toLogYX2, transform.errToLogYX2) 
    1845                 xunits = convertUnit(2, self.xaxis_unit) 
     1845                xunits = convert_unit(2, self.xaxis_unit) 
    18461846                self.graph._yaxis_transformed("\ln (%s \ \ %s^{2})" % (yname, xname), 
    18471847                                              "%s%s" % (yunits, xunits)) 
    18481848            if self.yLabel == "ln(y*x^(4))": 
    18491849                item.transformY(transform.toLogYX4, transform.errToLogYX4) 
    1850                 xunits = convertUnit(4, self.xaxis_unit) 
     1850                xunits = convert_unit(4, self.xaxis_unit) 
    18511851                self.graph._yaxis_transformed("\ln (%s \ \ %s^{4})" % (yname, xname), 
    18521852                                              "%s%s" % (yunits, xunits)) 
    18531853            if self.yLabel == "log10(y*x^(4))": 
    18541854                item.transformY(transform.toYX4, transform.errToYX4) 
    1855                 xunits = convertUnit(4, self.xaxis_unit) 
     1855                xunits = convert_unit(4, self.xaxis_unit) 
    18561856                _yscale = 'log' 
    18571857                self.graph._yaxis_transformed("%s \ \ %s^{4}" % (yname, xname), 
     
    18591859            if self.viewModel == "Guinier lny vs x^(2)": 
    18601860                item.transformX(transform.toX2, transform.errToX2) 
    1861                 xunits = convertUnit(2, xunits) 
     1861                xunits = convert_unit(2, xunits) 
    18621862                self.graph._xaxis_transformed("%s^{2}" % xname, "%s" % xunits) 
    18631863                item.transformY(transform.toLogX, transform.errToLogX) 
     
    18651865            if self.viewModel == "Porod y*x^(4) vs x^(4)": 
    18661866                item.transformX(transform.toX4, transform.errToX4) 
    1867                 xunits = convertUnit(4, self.xaxis_unit) 
     1867                xunits = convert_unit(4, self.xaxis_unit) 
    18681868                self.graph._xaxis_transformed("%s^{4}" % xname, "%s" % xunits) 
    18691869                item.transformY(transform.toYX4, transform.errToYX4) 
Note: See TracChangeset for help on using the changeset viewer.