gwastro/gwin

View on GitHub

Showing 121 of 121 total issues

Function get_file_type has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

def get_file_type(filename):
""" Returns I/O object to use for file.
 
Parameters
----------
Severity: Minor
Found in gwin/option_utils.py - About 25 mins to fix

Function injections_from_cli has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

def injections_from_cli(opts):
"""Gets injection parameters from the inference file(s).
 
Parameters
----------
Severity: Minor
Found in gwin/option_utils.py - About 25 mins to fix

Function from_config has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

def from_config(cls, cp, data, delta_f=None, delta_t=None,
gates=None, recalibration=None, **kwargs):
"""Initializes an instance of this class from the given config file.
 
Parameters
Severity: Minor
Found in gwin/models/marginalized_gaussian_noise.py - About 25 mins to fix

Function plot_ranges_from_cli has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

def plot_ranges_from_cli(opts):
"""Parses the mins and maxs arguments from the `plot_posterior` option
group.
 
Parameters
Severity: Minor
Found in gwin/option_utils.py - About 25 mins to fix

Invalid escape sequence '*'
Open

\**metadata :
Severity: Minor
Found in gwin/sampler/emcee.py by pep8

Line too long (81 > 79 characters)
Open

"""Since this is just a single chain, forces p0 to have shape (nparams,).
Severity: Minor
Found in gwin/sampler/mcmc.py by pep8

Invalid escape sequence '*'
Open

\**kwargs :
Severity: Minor
Found in gwin/models/base.py by pep8

Invalid escape sequence '*'
Open

\**params :
Severity: Minor
Found in gwin/models/base.py by pep8

Invalid escape sequence '*'
Open

\**kwargs :
Severity: Minor
Found in gwin/models/base.py by pep8

Invalid escape sequence '*'
Open

\**metadata :
Severity: Minor
Found in gwin/sampler/emcee.py by pep8

Invalid escape sequence '*'
Open

\**kwargs :
Severity: Minor
Found in gwin/models/__init__.py by pep8

Invalid escape sequence '*'
Open

\**metadata :
Severity: Minor
Found in gwin/sampler/base.py by pep8

Invalid escape sequence '*'
Open

\**kwargs :
Severity: Minor
Found in gwin/models/base_data.py by pep8

Invalid escape sequence '*'
Open

\**kwargs :

Line too long (82 > 79 characters)
Open

"""Given a pyplot axis, resamples its `which`-axis ticks such that are at most
Severity: Minor
Found in gwin/results/scatter_histograms.py by pep8

Invalid escape sequence '*'
Open

\**params :
Severity: Minor
Found in gwin/models/base.py by pep8

FIXME found
Open

# FIXME: the following if/else can be condensed to a single line
Severity: Minor
Found in gwin/sampler/emcee.py by fixme

FIXME found
Open

# FIXME: this just uses the same frequency cutoff for every instrument for
Severity: Minor
Found in gwin/option_utils.py by fixme

FIXME found
Open

# FIXME: this just uses the same frequency cutoff for every instrument for
Severity: Minor
Found in gwin/option_utils.py by fixme

FIXME found
Open

# FIXME: right now if there are two parameters it wants
Severity: Minor
Found in bin/gwin_plot_posterior by fixme
Severity
Category
Status
Source
Language