Skip to content

Commit

Permalink
Remove redundant method in operators.py
Browse files Browse the repository at this point in the history
Removed reundant `_get_field` method in the `FileQueryOperator` class.
  • Loading branch information
rahul4732saini committed Oct 30, 2024
1 parent 3fd4fb2 commit 01fdecb
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions fise/query/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,6 @@ def __init__(self, directory: Path, recursive: bool) -> None:
self._directory = directory
self._recursive = recursive

@staticmethod
def _get_field(field: Field | Size, file: File) -> Any:
"""
Extracts the specified field from the specified `File` object.
#### Params:
- field (Field): `Field` object comprising the field to be extracted.
- file (File): `File` object to extract data from.
"""

if isinstance(field, Size):
return field.evaluate(file)

return field.evaluate(file)

def get_dataframe(
self,
fields: list[Field | Size],
Expand Down

0 comments on commit 01fdecb

Please sign in to comment.