yt-project / yt_idv

Interactive volume rendering for yt
Other
8 stars 6 forks source link

add test for curves, fix traitlets deprecation warnings, update github action versions #128

Closed chrishavlin closed 1 week ago

chrishavlin commented 1 week ago

This adds a test for the curve rendering and fixes a traitlets deprecation warning in a few spots (there are likely additional spots missed by this PR).

Here's an example of the deprecation warning for reference:

yt_idv/scene_components/curves.py:17
  /home/chavlin/src/yt_general/yt_idv/yt_idv/scene_components/curves.py:17: DeprecationWarning: metadata {'trait': <traitlets.traitlets.CFloat object at 0x7fd876edab20>} 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')
    curve_rgba = traitlets.Tuple((1.0, 1.0, 1.0, 1.0), trait=traitlets.CFloat())