src/libertem/viz/gms.py
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert self.window is None
- Exclude checks
Method "__init__" has 8 parameters, which is greater than the 7 authorized. Open
Open
self, dataset, udf, roi=None, channel=None, title=None,
min_delta=0.2, udfresult=None,
- Read upRead up
- Exclude checks
A long parameter list can indicate that a new structure should be created to wrap the numerous parameters or that the function is doing too many things.
Noncompliant Code Example
With a maximum number of 4 parameters:
def do_something(param1, param2, param3, param4, param5): ...
Compliant Solution
def do_something(param1, param2, param3, param4): ...