Showing 129 of 135 total issues
Function _calculate_wavenumber_with_observations
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def _calculate_wavenumber_with_observations(self, ulevels, llevels, wrange=None,
apply_rules=False):
# id v J E p s iso lambda omega
ulevels = ulevels[:, [0, -3, 2, 1, 3, -4, 4, -2, -1]]
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _compute_honl_london_factors
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def _compute_honl_london_factors(self, usymm, lsymm, uj, lj, uomega,
lomega, ulambda, llambda):
# n' E' J' p' iso' st' v' l' o' n E J p iso st v l o freq
# print(usymm, lsymm, uj, uomega, lomega, ulambda, llambda)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function __init__
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def __init__(self, molecule, masses=None, niso=None, refj=None, ref_enr=None):
self.molecule = molecule
self.masses = None
self.atomic_db = []
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _on_preview_input_params_button_clicked
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def _on_preview_input_params_button_clicked(self):
self._toggle_table_widget()
params = []
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function check_input
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def check_input(self):
if not np.all(np.isfinite(self.x)):
raise ValueError("`x` must be finite array.")
if not np.all(np.isfinite(self.y)):
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _rule_lj_interaction
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def _rule_lj_interaction(self, jrotn):
# to check the abs values
omega_diff = abs(self.state1.omega - self.state2.omega)
lambda_diff = abs(self.state1._lambda - self.state2._lambda)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function __init__
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def __init__(self, objs, eig_decomp='lapack', lapack_driver='evr',
arpack_options=('LM', 6, None), is_weighted=False):
"""Construct the Hamiltonian object.
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _compute_line_strength
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def _compute_line_strength(self, out_wavens, dmfs, ninter=1000):
ivec_inds = out_wavens[:, 0].astype(np.int)
fvec_inds = out_wavens[:, 8].astype(np.int)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _on_plot_rad_params_push_button_clicked
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def _on_plot_rad_params_push_button_clicked(self, index):
params = []
found = False
with open(self.input_params_file, encoding='utf-8') as fstrm:
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"