Skip to content

Commit

Permalink
self-rebase shenanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Jul 26, 2023
1 parent dcc1bd4 commit b348b39
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions rerun_py/rerun_sdk/rerun/log/arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ def log_arrow(
instanced["rerun.arrow3d"] = Arrow3DArray.from_numpy(origin.reshape(1, 3), vector.reshape(1, 3))

if color is not None:
from rerun.experimental import cmp as rrc

colors = _normalize_colors(color)
instanced["rerun.colorrgba"] = rrc.ColorArray.from_similar(colors)

Expand Down
4 changes: 0 additions & 4 deletions rerun_py/rerun_sdk/rerun/log/bounding_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ def log_obb(
raise TypeError("rotation should be 1x4")

if color is not None:
from rerun.experimental import cmp as rrc

colors = _normalize_colors(color)
instanced["rerun.colorrgba"] = rrc.ColorArray.from_similar(colors)

Expand Down Expand Up @@ -238,8 +236,6 @@ def log_obbs(
raise TypeError("rotation should be 1x4")

if len(colors):
from rerun.experimental import cmp as rrc

is_splat = len(colors.shape) == 1
if is_splat:
colors = colors.reshape(1, len(colors))
Expand Down
4 changes: 0 additions & 4 deletions rerun_py/rerun_sdk/rerun/log/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ def log_line_strip(
raise TypeError("Positions should be either Nx2 or Nx3")

if color is not None:
from rerun.experimental import cmp as rrc

colors = _normalize_colors(color)
instanced["rerun.colorrgba"] = rrc.ColorArray.from_similar(colors)

Expand Down Expand Up @@ -437,8 +435,6 @@ def log_line_segments(
# The current API splats both color and stroke-width, though the data-model doesn't
# require that we do so.
if color is not None:
from rerun.experimental import cmp as rrc

colors = _normalize_colors(color)
splats["rerun.colorrgba"] = rrc.ColorArray.from_similar(colors)

Expand Down
2 changes: 0 additions & 2 deletions rerun_py/rerun_sdk/rerun/log/rects.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ def log_rect(
instanced["rerun.rect2d"] = Rect2DArray.from_numpy_and_format(rects, rect_format)

if color is not None:
from rerun.experimental import cmp as rrc

colors = _normalize_colors(color)
instanced["rerun.colorrgba"] = rrc.ColorArray.from_similar(colors)

Expand Down
2 changes: 0 additions & 2 deletions rerun_py/rerun_sdk/rerun/log/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ def log_text_entry(
logging.warning(f"Null text entry in log_text_entry('{entity_path}') will be dropped.")

if color is not None:
from rerun.experimental import cmp as rrc

colors = _normalize_colors(color)
instanced["rerun.colorrgba"] = rrc.ColorArray.from_similar(colors)

Expand Down
2 changes: 0 additions & 2 deletions rerun_py/rerun_sdk/rerun/log/text_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ def log_text_entry_internal(
logging.warning(f"Null text entry in log_text_entry('{entity_path}') will be dropped.")

if color is not None:
from rerun.experimental import cmp as rrc

colors = _normalize_colors(color)
instanced["rerun.colorrgba"] = rrc.ColorArray.from_similar(colors)

Expand Down

0 comments on commit b348b39

Please sign in to comment.