Vizzuality/landgriffon

View on GitHub
data/h3_data_importer/raster_folder_to_h3_table.py

Summary

Maintainability
A
2 hrs
Test Coverage

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

def insert_to_h3_master_table(
Severity: Major
Found in data/h3_data_importer/raster_folder_to_h3_table.py - About 50 mins to fix

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

    def main(folder: Path, table: str, data_type: str, dataset: str, year: int, h3_res: int, thread_count: int):
    Severity: Major
    Found in data/h3_data_importer/raster_folder_to_h3_table.py - About 50 mins to fix

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

      def to_the_db(df: pd.DataFrame, table: str, data_type: str, dataset: str, year: int, h3_res: int):
      Severity: Minor
      Found in data/h3_data_importer/raster_folder_to_h3_table.py - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status