Showing 101 of 190 total issues
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, username=None, password=None, server=None, authSource='admin',
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, MongoDB=None, db=None, username=None, password=None,
Function bool_query
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def bool_query(self, query_message, index, must=None, should=None, must_not=None, _filter=None,
Function get_all_ortho
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def get_all_ortho(self, ko, anchor, max_distance):
'''Get replacement abundance value by taxonomic distance
with the same OrthoDB group number.
Args:
- 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 get_all_kegg
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def get_all_kegg(self, ko, anchor, max_distance):
'''Get replacement abundance value by taxonomic distance
with the same kegg_orthology number.
Args:
- 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 aggregate_taxon_distance
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def aggregate_taxon_distance(self, match, local_field, _as,
Function get_entity_datatype
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def get_entity_datatype(self,
Function get_num_source
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def get_num_source(self, q, q_index, index, fields=['name', 'synonyms'],
Function get_kinlaw_by_environment
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def get_kinlaw_by_environment(self, taxon=None, taxon_wildtype=None, ph_range=None, temp_range=None,
Function get_kinlaw_by_environment
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def get_kinlaw_by_environment(self, taxon=None, taxon_wildtype=None, ph_range=None, temp_range=None,
Function get_kinlaw_by_rxn
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def get_kinlaw_by_rxn(self, substrates, products, dof=0,
Function get_kinlaw_by_rxn_ortho
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def get_kinlaw_by_rxn_ortho(self, substrates, products, dof=0,
Function get_single_index_count
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def get_single_index_count(self, q, index, num,
Function get_index_in_page
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def get_index_in_page(self, r, index):
"""Get indices in current hits page
Args:
r (:obj:`dict`): ftx search result
- 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 get_ids_by_participant_inchikey
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def get_ids_by_participant_inchikey(self, substrates, products, dof=1):
''' Find the kinlaw_id defined in sabio_rk using
rxn participants' inchikey
Args:
- 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 update_entity
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def update_entity(self,
Function query_entity
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def query_entity(self,
Function get_common_ancestor
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def get_common_ancestor(self, org1, org2, org_format='name'):
''' Get the closest common ancestor between
two organisms and their distances to the
said ancestor
Args:
- 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 update_observation
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def update_observation(self,
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, query, api='https://www.uniprot.org/uniprot/?', include='yes', compress='no',