Skip to content

Commit

Permalink
fix: fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fromm-m committed Mar 14, 2024
1 parent e2a287a commit 0651c29
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/modalities/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ def get_callback_interval_in_batches_per_rank(
return num_local_train_micro_batches_ret


def parse_enum_by_name(name: str, enum_type: Type[Enum]) -> Enum:
try:
val = enum_type[name]
return val
except KeyError:
raise ValidationError(f"Invalid {enum_type} member name: {name}")


def get_date_of_run():
"""create date and time for file save uniqueness
example: 2022-05-07__14-31-22'
Expand Down

0 comments on commit 0651c29

Please sign in to comment.