Skip to content

fix: logging.info calls pass filename as unused format argument - #17

Draft
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/test-sampling-733568d4
Draft

fix: logging.info calls pass filename as unused format argument#17
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/test-sampling-733568d4

Conversation

@andrewwhitecdw

@andrewwhitecdw andrewwhitecdw commented Jul 27, 2026

Copy link
Copy Markdown

Problem

fix: logging.info calls pass filename as unused format argument

Fix

Replace:

    logging.info("Loading", fname_object)
    test_object = utilities.instantiate_mesh(file=fname_object, scale=0.01)
    logging.info("Extents of loaded mesh:", test_object.extents)

with:

    logging.info(f"Loading {fname_object}")
    test_object = utilities.instantiate_mesh(file=fname_object, scale=0.01)
    logging.info(f"Extents of loaded mesh: {test_object.extents}")

Files changed

  • graspsampling-py-defgraspsim/tests/test_sampling.py

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.

1 participant