Skip to content

Commit

Permalink
Better fake array support
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 595121672
  • Loading branch information
Conchylicultor authored and The visu3d Authors committed Jan 2, 2024
1 parent 1f55584 commit f891f81
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Changelog follow https://keepachangelog.com/ format.

## [Unreleased]

* Add `hash()` support (e.g. after `etree.spec_like`).

## [1.5.4] - 2023-11-23

* Add `use_hw_coords` flag to `interp_img`.
Expand Down
1 change: 1 addition & 0 deletions visu3d/array_dataclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class DataclassArray(dca.DataclassArray, fig_utils.Visualizable):
default=fig_config_utils.TraceConfig(),
repr=False,
init=False,
hash=False,
)

def replace_fig_config(
Expand Down
1 change: 1 addition & 0 deletions visu3d/dc_arrays/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class Camera(array_dataclass.DataclassArray):
default=camera_spec.TraceConfig(),
repr=False,
init=False,
hash=False,
)

@classmethod
Expand Down
1 change: 1 addition & 0 deletions visu3d/dc_arrays/point.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Point3d(array_dataclass.DataclassArray):
),
repr=False,
init=False,
hash=False,
)

def __add__(self, translation: FloatArray['... 3']) -> Point3d:
Expand Down
1 change: 1 addition & 0 deletions visu3d/dc_arrays/ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class Ray(array_dataclass.DataclassArray):
),
repr=False,
init=False,
hash=False,
)

@property
Expand Down

0 comments on commit f891f81

Please sign in to comment.