Showing 48 of 134 total issues
Function decay_alb_power
has 8 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
def decay_alb_power(veg, veg_type, start_decay, end_decay,
Function __init__
has 7 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
def __init__(self, mx, my, mz, GridX, GridY, GridZ, config):
Function distribute
has 7 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
def distribute(self, date_time, cloud_factor, illum_ang, cosz, azimuth,
Function toporad
has 7 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
def toporad(beam, diffuse, illum_angle, sky_view_factor, terrain_config_factor,
Function __init__
has 7 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
def __init__(self, mx, my, mz, GridX, GridY, GridZ, config):
Function tracking_by_basin
has 7 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
def tracking_by_basin(precipitation, time, storm_lst, time_steps_since_precip,
Function catchment_ratios
has a Cognitive Complexity of 10 (exceeds 8 allowed). Consider refactoring. Open
Open
def catchment_ratios(ws, gauge_type, snowing):
"""
Point models for catchment ratios of the
"""
- 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 ephemeris
has a Cognitive Complexity of 10 (exceeds 8 allowed). Consider refactoring. Open
Open
def ephemeris(dt):
"""
Calculates radius vector, declination, and apparent longitude
of sun, as function of the given date and time.
- 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"