Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix: progress bar in log.py #74

Merged
merged 1 commit into from
Sep 20, 2023
Merged

bug fix: progress bar in log.py #74

merged 1 commit into from
Sep 20, 2023

Conversation

pakhy2380
Copy link
Contributor

현재

  • delta = time.time - self.s_t
  • iter 한 바퀴를 도는 시간이 self.period_secs보다 작으면, progress bar가 출력되지 않음
    • cnts는 항상 period_iter + 1이므로, cnts % period_iter = 1이 됨
  • 참고) iter가 아니라 update로 실행하면 정상 출력

변경

  • self.t를 업데이트해주고, delta를 이전 출력 시간과 현재 시간의 차로 변경

@ita9naiwa ita9naiwa self-requested a review September 20, 2023 07:50
@ita9naiwa
Copy link
Collaborator

혹시 원한 대로 결과 나오는지 테스트 해 보셨나요?

@pakhy2380
Copy link
Contributor Author

@ita9naiwa 넵, 혹시 제대로 안 나오는 경우가 있나요?

@ita9naiwa ita9naiwa merged commit 75c77f5 into kakao:dev Sep 20, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants