-
Notifications
You must be signed in to change notification settings - Fork 25
Remove print statements for logging (#421) #439
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
Changes from 6 commits
625cf49
94b5cbe
b2f82ea
cfea9aa
d703de6
16f2770
d811ff2
d913552
a425e40
9a6e325
02a9350
ceeaf3d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# ruff: noqa: T201 | ||
# (C) Copyright 2025 WeatherGenerator contributors. | ||
|
||
# | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,11 @@ | |
# In applying this licence, ECMWF does not waive the privileges and immunities | ||
# granted to it by virtue of its status as an intergovernmental organisation | ||
# nor does it submit to any jurisdiction. | ||
import logging | ||
|
||
from weathergen.train.utils import get_run_id | ||
|
||
_logger = logging.getLogger(__name__) | ||
|
||
if __name__ == "__main__": | ||
print(get_run_id()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. actually we can fully remove this main block. This is meant for people who want to create their own run ids.This is also implemented in the private repo, and it has no dependencies. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't seem to find any dependencies on this file so can I go ahead and delete the whole file? |
||
_logger.info(f"Run ID: {get_run_id()}") |
Uh oh!
There was an error while loading. Please reload this page.