Skip to content

Migrate to modern logger interface#246

Merged
saikrishnanc-nv merged 3 commits intoNVIDIA:mainfrom
emmanuel-ferdman:main
Jul 17, 2025
Merged

Migrate to modern logger interface#246
saikrishnanc-nv merged 3 commits intoNVIDIA:mainfrom
emmanuel-ferdman:main

Conversation

@emmanuel-ferdman
Copy link
Contributor

@emmanuel-ferdman emmanuel-ferdman commented Jun 5, 2025

PhysicsNeMo Pull Request

Description

The logger.warn() method is deprecated since Python2.7 and replaced with logger.warning(). It leads to those warnings:

DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead

This small PR resolves those warnings. It also fixes a few typos along the way.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.
  • The CHANGELOG.md is up to date with these changes.
  • An issue is linked to this pull request.

Dependencies

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
@ktangsali
Copy link
Collaborator

/blossom-ci

@saikrishnanc-nv saikrishnanc-nv self-requested a review June 30, 2025 20:31
@saikrishnanc-nv
Copy link
Contributor

Hi @emmanuel-ferdman - Sorry about the delay in getting to this!
Can you please run precommit for formatting and push a new commit?
Please see the CI log here: https://github.com/NVIDIA/physicsnemo-sym/actions/runs/15983169376/job/45081974740.

Otherwise this looks good to me, thanks for submitting this!

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
@saikrishnanc-nv
Copy link
Contributor

/blossom-ci

1 similar comment
@saikrishnanc-nv
Copy link
Contributor

/blossom-ci

@saikrishnanc-nv
Copy link
Contributor

/blossom-ci

Copy link
Contributor

@saikrishnanc-nv saikrishnanc-nv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@saikrishnanc-nv saikrishnanc-nv merged commit 1d3a267 into NVIDIA:main Jul 17, 2025
1 check 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.

3 participants