Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions bec_ipython_client/tests/client_tests/test_live_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,11 @@ def test_print_table_data_hinted_value_with_precision(
@pytest.mark.parametrize(
"value,expected",
[
(np.int32(1), "1.00"),
(np.float64(1.00000), "1.00"),
# Commented out cases are not supported in unstructured serialized data, because msgpack doesn't distinguish
# lists, tuples, or sets. To support this, ScanMessage must be refactored to support the type information directly
# except for numpy arrays, which are currently special-cased but will be removed in a future refactor.
# (np.int32(1), "1.00"),
# (np.float64(1.00000), "1.00"),
(0, "0.00"),
(1, "1.00"),
(0.000, "0.00"),
Expand All @@ -314,10 +317,10 @@ def test_print_table_data_hinted_value_with_precision(
("False", "False"),
("0", "0"),
("1", "1"),
((0, 1), "(0, 1)"),
# ((0, 1), "(0, 1)"),
({"value": 0}, "{'value': 0}"),
(np.array([0, 1]), "[0 1]"),
({1, 2}, "{1, 2}"),
# ({1, 2}, "{1, 2}"),
],
)
def test_print_table_data_variants(self, client_with_grid_scan, value, expected):
Expand Down
1 change: 1 addition & 0 deletions bec_lib/bec_lib/bec_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def _update_existing_services(self) -> None:
msgs = [
self.connector.get(MessageEndpoints.service_status(service)) for service in services
]
print(msgs)
self._services_info = {msg.content["name"]: msg for msg in msgs if msg is not None}
msgs = [self.connector.get(MessageEndpoints.metrics(service)) for service in services]
self._services_metric = {msg.content["name"]: msg for msg in msgs if msg is not None}
Expand Down
Loading
Loading