stephensolis/kameris

View on GitHub

Showing 5 of 11 total issues

Function classification_run has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

def classification_run(classifier_factory, features, point_classes,
Severity: Major
Found in kameris/job_steps/classify.py - About 50 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        for chunk in r.iter_content(chunk_size=1048576):
                            f.write(chunk)
                            pbar.update(len(chunk))
    
    
    Severity: Major
    Found in kameris/utils/download_utils.py - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          for opts in expand_values:
                              if opts == expanded_options:
                                  break
                              elif all(o in opts for o in sliced_options):
                                  new_exp_options['selection_copy_from'] = \
      Severity: Major
      Found in kameris/subcommands/run_job.py - About 45 mins to fix

        Function crossvalidation_run has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def crossvalidation_run(classifier_factory, features, features_mode,
        Severity: Minor
        Found in kameris/job_steps/classify.py - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              if 'archive_folder' in group_options['dataset']:
                                  filename = '{}/{}'.format(
                                      group_options['dataset']['archive_folder'],
                                      filename
                                  )
          Severity: Major
          Found in kameris/job_steps/selection.py - About 45 mins to fix
            Severity
            Category
            Status
            Source
            Language