-
Notifications
You must be signed in to change notification settings - Fork 3k
Reduce warnings #4522
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
base: develop
Are you sure you want to change the base?
Reduce warnings #4522
Changes from all commits
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -20,5 +20,12 @@ | |||||
| # Configure the module-level variables | ||||||
| __version__ = ISAACLAB_ASSETS_METADATA["package"]["version"] | ||||||
|
|
||||||
| # Configure deprecation warnings to show only once per session (regardless of call site) | ||||||
| # This prevents repeated warnings when deprecated properties are accessed from multiple locations | ||||||
| import warnings | ||||||
|
Contributor
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. Move
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||||||
|
|
||||||
| warnings.filterwarnings("once", category=DeprecationWarning, module=r"isaaclab_assets.*") | ||||||
| warnings.filterwarnings("once", category=FutureWarning, module=r"isaaclab_assets.*") | ||||||
|
|
||||||
| from .robots import * | ||||||
| from .sensors import * | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -22,3 +22,10 @@ | |||||
|
|
||||||
| # Configure the module-level variables | ||||||
| __version__ = ISAACLAB_CONTRIB_METADATA["package"]["version"] | ||||||
|
|
||||||
| # Configure deprecation warnings to show only once per session (regardless of call site) | ||||||
| # This prevents repeated warnings when deprecated properties are accessed from multiple locations | ||||||
|
Contributor
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. Move
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||||||
| import warnings | ||||||
|
|
||||||
| warnings.filterwarnings("once", category=DeprecationWarning, module=r"isaaclab_contrib.*") | ||||||
| warnings.filterwarnings("once", category=FutureWarning, module=r"isaaclab_contrib.*") | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6,3 +6,10 @@ | |||||
| """Package containing implementation of Isaac Lab Mimic data generation.""" | ||||||
|
|
||||||
| __version__ = "1.0.0" | ||||||
|
|
||||||
| # Configure deprecation warnings to show only once per session (regardless of call site) | ||||||
| # This prevents repeated warnings when deprecated properties are accessed from multiple locations | ||||||
|
Contributor
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. Add
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||||||
| import warnings | ||||||
|
|
||||||
| warnings.filterwarnings("once", category=DeprecationWarning, module=r"isaaclab_mimic.*") | ||||||
| warnings.filterwarnings("once", category=FutureWarning, module=r"isaaclab_mimic.*") | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -18,5 +18,12 @@ | |||||
| # Configure the module-level variables | ||||||
| __version__ = ISAACLAB_PHYSX_METADATA["package"]["version"] | ||||||
|
|
||||||
| # Configure deprecation warnings to show only once per session (regardless of call site) | ||||||
| # This prevents repeated warnings when deprecated properties are accessed from multiple locations | ||||||
|
Contributor
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. Move
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||||||
| import warnings | ||||||
|
|
||||||
| warnings.filterwarnings("once", category=DeprecationWarning, module=r"isaaclab_physx.*") | ||||||
| warnings.filterwarnings("once", category=FutureWarning, module=r"isaaclab_physx.*") | ||||||
|
|
||||||
| # Import sensors module for auto-registration with factory | ||||||
| from . import sensors # noqa: F401, E402 | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -17,3 +17,10 @@ | |||||
| expect different input and output data structures, their wrapper classes are not compatible with each other. | ||||||
| Thus, they should always be used in conjunction with the respective learning framework. | ||||||
| """ | ||||||
|
|
||||||
| # Configure deprecation warnings to show only once per session (regardless of call site) | ||||||
| # This prevents repeated warnings when deprecated properties are accessed from multiple locations | ||||||
| import warnings | ||||||
|
Contributor
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. Add
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||||||
|
|
||||||
| warnings.filterwarnings("once", category=DeprecationWarning, module=r"isaaclab_rl.*") | ||||||
| warnings.filterwarnings("once", category=FutureWarning, module=r"isaaclab_rl.*") | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -26,6 +26,13 @@ | |||||
| # Configure the module-level variables | ||||||
| __version__ = ISAACLAB_TASKS_METADATA["package"]["version"] | ||||||
|
|
||||||
| # Configure deprecation warnings to show only once per session (regardless of call site) | ||||||
| # This prevents repeated warnings when deprecated properties are accessed from multiple locations | ||||||
|
Contributor
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. Move
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||||||
| import warnings | ||||||
|
|
||||||
| warnings.filterwarnings("once", category=DeprecationWarning, module=r"isaaclab_tasks.*") | ||||||
| warnings.filterwarnings("once", category=FutureWarning, module=r"isaaclab_tasks.*") | ||||||
|
|
||||||
| ## | ||||||
| # Register Gym environments. | ||||||
| ## | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move
import warningsto the top of the file with other imports (line 8-9) per PEP8 conventionsNote: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!