pbrod/Nvector

View on GitHub

Showing 343 of 343 total issues

Missing function or method docstring
Open

def main():
Severity: Info
Found in src/nvector/plot.py by pylint

Used when a function or method has no docstring. Some special methods like init do not require a docstring.

Too many arguments (7/5)
Open

def n_EA_E_and_n_EB_E2p_AB_E(n_EA_E, n_EB_E, z_EA=0, z_EB=0, a=6378137,
Severity: Info
Found in src/nvector/core.py by pylint

Used when a function or method takes too many arguments.

Variable name fp doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

    with open(file_path, 'r') as fp:
Severity: Info
Found in setup.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Formatting a regular string which could be a f-string
Open

            warnings.warn('Using {} is not a recommended mode for filtering headings data!'
Severity: Info
Found in src/nvector/core.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Unable to import 'sphinx.application'
Open

        from sphinx.application import Sphinx
Severity: Critical
Found in setup.py by pylint

Used when pylint has been unable to import a module.

Formatting a regular string which could be a f-string
Open

    print('Ex7, Average lat={0:2.1f}, lon={1:2.1f}'.format(lat[0], lon[0]))
Severity: Info
Found in src/nvector/plot.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Missing class docstring
Open

class Doctest(Command):
Severity: Info
Found in setup.py by pylint

Used when a class has no docstring. Even an empty class must have a docstring.

Formatting a regular string which could be a f-string
Open

    print("Version: {}".format(version))
Severity: Info
Found in setup.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Unable to import 'numpy'
Open

import numpy as np
Severity: Critical
Found in src/nvector/karney.py by pylint

Used when pylint has been unable to import a module.

Unable to import 'numpy'
Open

import numpy as np
Severity: Critical
Found in src/nvector/core.py by pylint

Used when pylint has been unable to import a module.

Too many local variables (18/15)
Open

def _azimuth_sphere(n_EA_E, n_EB_E, R_Ee=None):
Severity: Info
Found in src/nvector/core.py by pylint

Used when a function or method has too many local variables.

Unable to import 'cartopy.crs'
Open

    import cartopy.crs as ccrs
Severity: Critical
Found in src/nvector/plot.py by pylint

Used when pylint has been unable to import a module.

Missing function or method docstring
Open

def setup_package():
Severity: Info
Found in setup.py by pylint

Used when a function or method has no docstring. Some special methods like init do not require a docstring.

Unnecessary parens after '=' keyword
Open

    meridional = (np.abs(sin_lamda12) <= tol)  # alpha1 is 0 or pi #lamda12
Severity: Info
Found in src/nvector/karney.py by pylint

Used when a single item in parentheses follows an if, for, or other keyword.

Too many arguments (7/5)
Open

def geodesic_reckon(lat_a, lon_b, distance, azimuth, a=6378137, f=1.0 / 298.257223563,
Severity: Info
Found in src/nvector/karney.py by pylint

Used when a function or method takes too many arguments.

Too many local variables (19/15)
Open

def _solve_alpha1(alpha1, blat1, blat2, true_lamda12, a, f, tol=1e-15):
Severity: Info
Found in src/nvector/karney.py by pylint

Used when a function or method has too many local variables.

Unable to import 'matplotlib.pyplot'
Open

import matplotlib.pyplot as plt
Severity: Critical
Found in src/nvector/plot.py by pylint

Used when pylint has been unable to import a module.

Unable to import 'numpy'
Open

from numpy import arctan2, sin, cos, cross, dot, sqrt
Severity: Critical
Found in src/nvector/core.py by pylint

Used when pylint has been unable to import a module.

Consider using '{axis: 1, mode: mode, cval: cval}' instead of a call to 'dict'.
Open

        options = dict(axis=1, mode=mode, cval=cval)
Severity: Info
Found in src/nvector/core.py by pylint

Emitted when using dict() to create a dictionary instead of a literal '{ ... }'. The literal is faster as it avoids an additional function call.

Constant name cpf doesn't conform to '(([A-Z_][A-Z0-9_]*)|(__.*__))$' pattern ('(([A-Z_][A-Z0-9_]*)|(__.*__))$' pattern)
Open

    cpf = ccrs = None
Severity: Info
Found in src/nvector/plot.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Severity
Category
Status
Source
Language