Skip to content
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

remaining warnings #101

Open
chrishavlin opened this issue Oct 26, 2023 · 1 comment
Open

remaining warnings #101

chrishavlin opened this issue Oct 26, 2023 · 1 comment
Labels
infrastructure Related to CI, versioning, websites, organizational issues, etc

Comments

@chrishavlin
Copy link
Contributor

#100 fixes a few, but there are some that are coming from yt_idv (not its dependencies) that I wasn't sure what to do with.

This one should be easy, but I'm confused by traitlets :)

yt_idv/tests/test_yt_idv.py::test_snapshots
  /home/chavlin/src/yt_general/yt_idv/yt_idv/scene_components/blocks.py:30: DeprecationWarning: metadata {'trait': <traitlets.traitlets.CFloat object at 0x7f2add86ad30>} was set from the constructor. With traitlets 4.1, metadata should be set using the .tag() method, e.g., Int().tag(key1='value1', key2='value2')
    slice_position = traitlets.Tuple((0.5, 0.5, 0.5), trait=traitlets.CFloat())

And then a bunch related to missing characters, e.g.,

yt_idv/tests/test_yt_idv.py::test_annotate_text
  /home/chavlin/src/yt_general/yt_idv/yt_idv/scene_data/text_characters.py:36: UserWarning: Glyph 9 (	) missing from current font.
    self.font.set_text(chr(char_code), flags=LOAD_FORCE_AUTOHINT)
@chrishavlin chrishavlin added the infrastructure Related to CI, versioning, websites, organizational issues, etc label Oct 26, 2023
@chrishavlin
Copy link
Contributor Author

(there are a couple others coming from dependencies, but since we don't have pytest set to fail on warnings it's not worth catching them in pytest at present...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Related to CI, versioning, websites, organizational issues, etc
Projects
None yet
Development

No branches or pull requests

1 participant