pylhc_submitter/sixdesk_tools/submit.py
Function check_sixtrack_output
has 6 arguments (exceeds 4 allowed). Consider refactoring. Invalid
Invalid
def check_sixtrack_output(jobname: str, basedir: Path, python: Union[Path, str],
Function sixdb_cmd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Invalid
Invalid
def sixdb_cmd(jobname: str, basedir: Path, python: Union[Path, str], cmd: list,
Function submit_sixtrack
has 6 arguments (exceeds 4 allowed). Consider refactoring. Invalid
Invalid
def submit_sixtrack(jobname: str, basedir: Path, python: Path = None,
Function sixdb_load
has 5 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
def sixdb_load(jobname: str, basedir: Path, python: Union[Path, str],
Function check_sixtrack_input
has 5 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
def check_sixtrack_input(jobname: str, basedir: Path, sixdesk: Path = SIXDESK_UTILS, ssh: str = None, resubmit: bool = False):
Function submit_sixtrack
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def submit_sixtrack(jobname: str, basedir: Path, python: Path = None,
sixdesk: Path = SIXDESK_UTILS, ssh: str = None, resubmit: bool = False):
""" Generate simulation files and check if runnable and submit. """
re_str = "Re-" if resubmit else ""
LOG.info(f"{re_str}Submitting to sixtrack.")
- 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"