Skip to content

Commit

Permalink
Merge branch 'add-typer-cli' of https://github.com/cfpb/regtech-data-…
Browse files Browse the repository at this point in the history
…validator into add-typer-cli
  • Loading branch information
hkeeler committed Nov 8, 2023
2 parents 8770b03 + 6e30b5f commit 23bf8ef
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions regtech_data_validator/create_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def get_phase_2_schema_for_lei(context: dict[str, str] | None = None):
return get_schema_by_phase_for_lei(phase_2_template, "phase_2", context)


@staticmethod
def _get_check_fields(check: Check, primary_column: str) -> list[str]:
"""
Retrieves unique sorted list of fields associated with a given Check
Expand All @@ -47,7 +46,6 @@ def _get_check_fields(check: Check, primary_column: str) -> list[str]:
return fields


@staticmethod
def _filter_valid_records(df: pd.DataFrame, check_output: pd.Series, fields: list[str]) -> pd.DataFrame:
"""
Return only records and fields associated with a given `Check`'s
Expand All @@ -65,7 +63,6 @@ def _filter_valid_records(df: pd.DataFrame, check_output: pd.Series, fields: lis
return failed_records_df


@staticmethod
def _records_to_fields(failed_records_df: pd.DataFrame) -> pd.DataFrame:
"""
Transforms a DataFrame with columns per Check field to DataFrame with a row per field
Expand All @@ -81,7 +78,6 @@ def _records_to_fields(failed_records_df: pd.DataFrame) -> pd.DataFrame:
return failed_record_fields_df


@staticmethod
def _add_validation_metadata(failed_check_fields_df: pd.DataFrame, check: SBLCheck):
"""
Add SBLCheck metadata (id, name, description, severity)
Expand Down

0 comments on commit 23bf8ef

Please sign in to comment.