@@ -104,36 +104,14 @@ def test_schema_recording(self) -> None:
104
104
# Color, Points3DIndicator, Position3D, Radius, Text, TextIndicator
105
105
assert len (schema .component_columns ()) == 6
106
106
107
- # TODO(cmc): revert me
108
- # assert schema.index_columns()[0].name == "log_tick"
109
- # assert schema.index_columns()[1].name == "log_time"
110
- # assert schema.index_columns()[2].name == "my_index"
111
- # assert schema.component_columns()[0].entity_path == "/points"
112
- # assert schema.component_columns()[0].component_name == "rerun.components.Points3DIndicator"
113
- # assert schema.component_columns()[0].is_static is False
114
- # assert schema.component_columns()[1].entity_path == "/points"
115
- # assert schema.component_columns()[1].component_name == "rerun.components.Color"
116
- # assert schema.component_columns()[1].is_static is False
117
- # assert schema.component_columns()[2].entity_path == "/points"
118
- # assert schema.component_columns()[2].component_name == "rerun.components.Position3D"
119
- # assert schema.component_columns()[2].is_static is False
120
- # assert schema.component_columns()[3].entity_path == "/points"
121
- # assert schema.component_columns()[3].component_name == "rerun.components.Radius"
122
- # assert schema.component_columns()[3].is_static is False
123
- # assert schema.component_columns()[4].entity_path == "/static_text"
124
- # assert schema.component_columns()[4].component_name == "rerun.components.TextLogIndicator"
125
- # assert schema.component_columns()[4].is_static is True
126
- # assert schema.component_columns()[5].entity_path == "/static_text"
127
- # assert schema.component_columns()[5].component_name == "rerun.components.Text"
128
- # assert schema.component_columns()[5].is_static is True
129
107
assert schema .index_columns ()[0 ].name == "log_tick"
130
108
assert schema .index_columns ()[1 ].name == "log_time"
131
109
assert schema .index_columns ()[2 ].name == "my_index"
132
110
assert schema .component_columns ()[0 ].entity_path == "/points"
133
- assert schema .component_columns ()[0 ].component_name == "rerun.components.Color "
111
+ assert schema .component_columns ()[0 ].component_name == "rerun.components.Points3DIndicator "
134
112
assert schema .component_columns ()[0 ].is_static is False
135
113
assert schema .component_columns ()[1 ].entity_path == "/points"
136
- assert schema .component_columns ()[1 ].component_name == "rerun.components.Points3DIndicator "
114
+ assert schema .component_columns ()[1 ].component_name == "rerun.components.Color "
137
115
assert schema .component_columns ()[1 ].is_static is False
138
116
assert schema .component_columns ()[2 ].entity_path == "/points"
139
117
assert schema .component_columns ()[2 ].component_name == "rerun.components.Position3D"
@@ -142,11 +120,14 @@ def test_schema_recording(self) -> None:
142
120
assert schema .component_columns ()[3 ].component_name == "rerun.components.Radius"
143
121
assert schema .component_columns ()[3 ].is_static is False
144
122
assert schema .component_columns ()[4 ].entity_path == "/static_text"
145
- assert schema .component_columns ()[4 ].component_name == "rerun.components.Text "
123
+ assert schema .component_columns ()[4 ].component_name == "rerun.components.TextLogIndicator "
146
124
assert schema .component_columns ()[4 ].is_static is True
147
125
assert schema .component_columns ()[5 ].entity_path == "/static_text"
148
- assert schema .component_columns ()[5 ].component_name == "rerun.components.TextLogIndicator "
126
+ assert schema .component_columns ()[5 ].component_name == "rerun.components.Text "
149
127
assert schema .component_columns ()[5 ].is_static is True
128
+ assert schema .index_columns ()[0 ].name == "log_tick"
129
+ assert schema .index_columns ()[1 ].name == "log_time"
130
+ assert schema .index_columns ()[2 ].name == "my_index"
150
131
151
132
def test_schema_view (self ) -> None :
152
133
schema = self .recording .view (index = "my_index" , contents = "points" ).schema ()
0 commit comments