scivision/glowaurora

View on GitHub
glowaurora/runglow_future.py

Summary

Maintainability
B
6 hrs
Test Coverage

Function plotaurora has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def plotaurora(phitop, ver, zceta, photIon, isr, dtime, glat, glon):
    # %% incident flux at top of ionosphere
    ax = figure().gca()
    ax.plot(phitop.index, phitop['diffnumflux'])
    ax.set_title('Incident Flux', fontsize='x-large')
Severity: Major
Found in glowaurora/runglow_future.py - About 2 hrs to fix

    Function runglowaurora has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    def runglowaurora(eflux, e0, dt, glat, glon, f107a, f107, f107p, ap, mass):
        chdir(glowpath)
        yd, utsec = datetime2yeardoy(dt)[:2]
    
        z = arange(80, 110 + 1, 1)
    Severity: Minor
    Found in glowaurora/runglow_future.py - About 2 hrs to fix

      Function runglowaurora has 10 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def runglowaurora(eflux, e0, dt, glat, glon, f107a, f107, f107p, ap, mass):
      Severity: Major
      Found in glowaurora/runglow_future.py - About 1 hr to fix

        Function plotaurora has 8 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def plotaurora(phitop, ver, zceta, photIon, isr, dtime, glat, glon):
        Severity: Major
        Found in glowaurora/runglow_future.py - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status