Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
  • Loading branch information
HAOCHENYE and C1rN09 authored Jan 30, 2023
1 parent 43223dd commit c94baaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmengine/hooks/logger_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ def __init__(self,
backend_args: Optional[dict] = None):

assert isinstance(interval, int) and interval > 0, (
'interval must be greater than 0, ')
'interval must be greater than 0')
self.interval = interval

assert isinstance(ignore_last, bool), ('ignore_last must be a boolean')
self.ignore_last = ignore_last

assert isinstance(interval_exp_name, int) and interval_exp_name > 0, (
'interval_exp_name must be greater than 0, ')
'interval_exp_name must be greater than 0')
self.interval_exp_name = interval_exp_name

if out_dir is not None:
Expand Down

0 comments on commit c94baaf

Please sign in to comment.