diatomic/optimizer.py
File optimizer.py
has 415 lines of code (exceeds 250 allowed). Consider refactoring. Wontfix
Wontfix
import io
from os.path import join as _join
import scipy as sp
import numpy as np
Function optimize
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def optimize(self, ypar, yfixed, calculate_data, niter, derivative,
Function optimize_levels_by_svd_regular
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def optimize_levels_by_svd_regular(self, niter=1, derivative='n',
Function _write_fit_progress
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _write_fit_progress(self, rank, sing_values, tol, ypar, dypar, yfixed):
Function _get_dydp_elem
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_dydp_elem(self, indices, sk, sk_grid, sk_coef, j, evecs_found):
Function optimize_wavenumbers_by_svd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def optimize_wavenumbers_by_svd(self, niter=1, derivative='n', tol=0.1,
Function optimize_intensity_by_svd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def optimize_intensity_by_svd(self, niter=1, derivative='n', tol=0.1,
Function _calculate_numerical_derivatives
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _calculate_numerical_derivatives(self, ypar, yfixed, calculate_data,
Function optimize_levels_by_svd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def optimize_levels_by_svd(self, niter=1, derivative='n', tol=0.1,
Avoid deeply nested control flow statements. Open
Open
if j not in memoize:
elem = self._get_dydp_elem(iprm[:4], sk, sk_grid,
sk_coef, j, evecs_found)
dydp[countj, prm] = elem[countj]
Function _write_pointwise_data
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _write_pointwise_data(self, fname, xpoints, ypoints, fixed):