Skip to content

Commit

Permalink
Refactoring: rename 'add_fields_to_schema_among_labels' method into '…
Browse files Browse the repository at this point in the history
…rearrange_schema_fields_given_labels'
  • Loading branch information
amelie-rondot committed Feb 14, 2024
1 parent 2299d1c commit 5297ff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frictionless/detector/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def detect_schema(
schema.fields, case_sensitive # type: ignore
)

self.add_fields_to_schema_among_labels(
self.rearrange_schema_fields_given_labels(
mapped_fields, schema, labels, case_sensitive # type: ignore
)

Expand Down Expand Up @@ -459,7 +459,7 @@ def mapped_schema_fields_names(
return {field.name.lower(): field for field in fields}

@staticmethod
def add_fields_to_schema_among_labels(
def rearrange_schema_fields_given_labels(
fields_mapped: Dict[str, Field],
schema: Schema,
labels: List[str],
Expand Down

0 comments on commit 5297ff4

Please sign in to comment.