Skip to content

Adds print info in disassembly direct environment #2750

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

Merged
merged 2 commits into from
Jun 24, 2025
Merged

Conversation

yijieg
Copy link
Collaborator

@yijieg yijieg commented Jun 22, 2025

Description

Add more information in the print out message, when generating disassembly paths.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • [ x ] I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • [ x ] My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • [ x ] I have added my name to the CONTRIBUTORS.md or my name already exists there

@yijieg yijieg requested a review from kellyguo11 as a code owner June 22, 2025 01:38
@@ -880,6 +876,10 @@ def _save_log_traj(self):
with open(log_filename, "w+") as out_file:
json.dump(log_item, out_file, indent=6)

print("Trajectory collection complete! Collected %d trajectories." % len(self.log_arm_dof_pos))
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you switch it to use f-strings in Python? :)

https://docs.python.org/3/tutorial/inputoutput.html#fancier-output-formatting

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for your comment! I pushed a commit to change the string format.

@Mayankm96 Mayankm96 changed the title add more info when printing out Adds print info in disassembly direct environment Jun 23, 2025
@Mayankm96 Mayankm96 added the documentation Improvements or additions to documentation label Jun 23, 2025
@kellyguo11 kellyguo11 merged commit 9980e66 into main Jun 24, 2025
4 of 5 checks passed
@kellyguo11 kellyguo11 deleted the automate_print branch June 24, 2025 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants