RemoteRF 2.13.9__tar.gz → 2.13.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {remoterf-2.13.9/src/remoterf.egg-info → remoterf-2.13.11}/PKG-INFO +1 -1
- {remoterf-2.13.9 → remoterf-2.13.11}/pyproject.toml +1 -1
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/grpc/v2_codec.py +8 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/utils/process_arg.py +2 -1
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/core/app.py +6 -7
- {remoterf-2.13.9 → remoterf-2.13.11/src/remoterf.egg-info}/PKG-INFO +1 -1
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_dynamic_v2.py +5 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_messages.py +27 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_process_arg.py +7 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/LICENSE +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/README.md +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/setup.cfg +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/setup.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/_remoterf_alias.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/admin.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/agent_cli.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/agent_docs.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/api.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/grpc/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/grpc/deployment_capabilities.proto +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/grpc/deployment_capabilities_pb2.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/grpc/deployment_capabilities_pb2_grpc.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/grpc/grpc.proto +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/grpc/grpc_pb2.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/grpc/grpc_pb2_grpc.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/tos_notice.txt +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/utils/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/utils/ansi_codes.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/utils/api_token.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/utils/banner.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/utils/list_string.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/config/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/config/cert_fetcher.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/config/config.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/core/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/core/acc_login.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/core/availability.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/core/banner_note.txt +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/core/direct_path.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/core/dynamic_v2_transport.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/core/grpc_acc.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/core/grpc_client.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/core/messages.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/core/secure_channel.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/core/v2_errors.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/data/agent_guide.md +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/data/mcp_tools.json +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/deployment/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/deployment/backend.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/deployment/direct.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/deployment/homes.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/deployment/http.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/deployment/lanpass.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/deployment/state.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/_virtual.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/adalm_pluto/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/adalm_pluto/adalm_pluto_remote.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/adalm_pluto_mimo/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/adalm_pluto_mimo/adalm_pluto_mimo_remote.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/bluetooth/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/bluetooth/bluetooth_remote.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/dynamic_device.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/dynamic_v2.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/gps/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/gps/gps_remote.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/hackrf/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/hackrf/hackrf_remote.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/krakensdr/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/krakensdr/krakensdr_remote.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/rfbeam_kmd7/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/rfbeam_kmd7/rfbeam_kmd7_remote.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/rtl_sdr/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/rtl_sdr/rtl_sdr_remote.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/rtlsdr/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/schema_review.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/sim_sdr/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/sim_sdr/sim_sdr_remote.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/support/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/support/krakensdr.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/support/rfbeam_kmd7.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/support/ti_mmwave.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/support/uhd.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/support/uhd_dsp.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/support/uhd_v2.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/support/wifi.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/ti_awr6843/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/ti_awr6843/ti_awr6843_remote.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/ti_mmwave/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/ti_mmwave/ti_mmwave_remote.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/usrp/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/usrp/usrp_remote.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/usrp/usrp_remote.pyi +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/wifi/__init__.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/drivers/wifi/wifi_remote.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/mcp_server.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/ops.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/remoterf_cli.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/version.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf.egg-info/SOURCES.txt +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf.egg-info/dependency_links.txt +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf.egg-info/entry_points.txt +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf.egg-info/requires.txt +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf.egg-info/top_level.txt +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_agent_cli.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_agent_docs.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_api.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_banner.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_batch.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_bundled_drivers.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_ca_pin.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_cli_login_fresh.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_config_address.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_deployment_accounts.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_device_routes.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_devices_api.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_direct_path_fixed.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_direct_path_global.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_direct_path_partner.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_direct_path_race.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_direct_path_relay.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_dynamic_device_codegen.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_federated_devices.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_fetch_idl_fallback.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_finish_prompt.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_gate_i_direct_path.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_grpc_client_target.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_homes.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_lan_fallback.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_mcp_server.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_native_account_credentials.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_native_devices.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_native_drivers.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_old_import_name.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_ops.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_partner_dynamic_v2.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_pluto_virtual.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_relay_paging.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_remote_admin.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_remoterf_cli.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_rx_readahead.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_schema_review.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_ti_mmwave.py +0 -0
- {remoterf-2.13.9 → remoterf-2.13.11}/tests/test_upgrade_rescue.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: remoterf
|
|
3
|
-
Version: 2.13.
|
|
3
|
+
Version: 2.13.11
|
|
4
4
|
Summary: A python API to remotely access signal centric hardware. Client-side only! Courtesy of Wireless Lab @ UCLA & Prof. Ian Roberts.
|
|
5
5
|
Author-email: Ethan Ge <84103791+ethange1@users.noreply.github.com>
|
|
6
6
|
License-Expression: GPL-3.0-or-later
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "remoterf"
|
|
7
|
-
version = "2.13.
|
|
7
|
+
version = "2.13.11"
|
|
8
8
|
description = "A python API to remotely access signal centric hardware. Client-side only! Courtesy of Wireless Lab @ UCLA & Prof. Ian Roberts."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "GPL-3.0-or-later"
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"""Wire codec for Dynamic protocol v2 control values."""
|
|
17
17
|
from __future__ import annotations
|
|
18
18
|
|
|
19
|
+
import base64
|
|
19
20
|
import json
|
|
20
21
|
import math
|
|
21
22
|
|
|
@@ -60,6 +61,11 @@ def _json_safe(value):
|
|
|
60
61
|
_JSON_TYPE_KEY: "integer",
|
|
61
62
|
"value": str(value),
|
|
62
63
|
}
|
|
64
|
+
if isinstance(value, (bytes, bytearray, memoryview)):
|
|
65
|
+
return {
|
|
66
|
+
_JSON_TYPE_KEY: "bytes",
|
|
67
|
+
"b64": base64.b64encode(bytes(value)).decode("ascii"),
|
|
68
|
+
}
|
|
63
69
|
if isinstance(value, dict):
|
|
64
70
|
return {str(key): _json_safe(item) for key, item in value.items()}
|
|
65
71
|
if isinstance(value, (list, tuple)):
|
|
@@ -73,6 +79,8 @@ def _json_restore(value):
|
|
|
73
79
|
return complex(value.get("real", 0.0), value.get("imag", 0.0))
|
|
74
80
|
if value.get(_JSON_TYPE_KEY) == "integer":
|
|
75
81
|
return int(value["value"])
|
|
82
|
+
if value.get(_JSON_TYPE_KEY) == "bytes":
|
|
83
|
+
return base64.b64decode(value.get("b64", ""))
|
|
76
84
|
return {key: _json_restore(item) for key, item in value.items()}
|
|
77
85
|
if isinstance(value, list):
|
|
78
86
|
return [_json_restore(item) for item in value]
|
|
@@ -219,7 +219,8 @@ def map_arg(value: Any) -> grpc_pb2.Argument:
|
|
|
219
219
|
array = np.stack(value)
|
|
220
220
|
except Exception:
|
|
221
221
|
pass
|
|
222
|
-
|
|
222
|
+
# bytes/str lists become S/U arrays, which drop trailing NULs.
|
|
223
|
+
if array.dtype == object or array.dtype.kind not in _SUPPORTED_NDARRAY_KINDS:
|
|
223
224
|
arg.json_value = json.dumps(_json_safe(value), separators=(",", ":"))
|
|
224
225
|
return arg
|
|
225
226
|
return map_arg(array)
|
|
@@ -739,14 +739,13 @@ def _federated_reservation_rows(*, mine_only):
|
|
|
739
739
|
offline = _render_destinations(data["destinations"])
|
|
740
740
|
names = {d["deployment_id"]: d["display_name"] for d in data["destinations"] if d["display_name"] != d["deployment_id"]}
|
|
741
741
|
rows = [r for r in data["reservations"] if r["mine"] or not mine_only]
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
if any(r["device_id"] not in labels for r in rows):
|
|
742
|
+
# A reservation's display_name is the lab's owner label ("you"/"reserved"),
|
|
743
|
+
# not the device; name devices from getdev instead.
|
|
744
|
+
labels = {}
|
|
745
|
+
if rows:
|
|
747
746
|
try:
|
|
748
|
-
labels
|
|
749
|
-
|
|
747
|
+
labels = {d["device_id"]: _device_label(d["display_name"], d.get("handle"), d["deployment_name"])
|
|
748
|
+
for d in account.get_devices()["devices"]}
|
|
750
749
|
except AccountBackendError:
|
|
751
750
|
pass
|
|
752
751
|
for r in rows:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: remoterf
|
|
3
|
-
Version: 2.13.
|
|
3
|
+
Version: 2.13.11
|
|
4
4
|
Summary: A python API to remotely access signal centric hardware. Client-side only! Courtesy of Wireless Lab @ UCLA & Prof. Ian Roberts.
|
|
5
5
|
Author-email: Ethan Ge <84103791+ethange1@users.noreply.github.com>
|
|
6
6
|
License-Expression: GPL-3.0-or-later
|
|
@@ -561,6 +561,11 @@ class DynamicV2Tests(unittest.TestCase):
|
|
|
561
561
|
)
|
|
562
562
|
OverloadBinder(phases).bind((np.linspace(0, 315, 8),), {}) # numpy arrays are sequences
|
|
563
563
|
self.assertEqual(decode_value(encode_value(np.complex64(1 + 2j))), 1 + 2j)
|
|
564
|
+
# Nested bytes go through JSON; top-level bytes stay bytes_value.
|
|
565
|
+
self.assertEqual(decode_value(encode_value({"x": b"\x01\x00"})), {"x": b"\x01\x00"})
|
|
566
|
+
self.assertEqual(decode_value(encode_value([b"\x00"])), [b"\x00"])
|
|
567
|
+
self.assertEqual(encode_value(b"\x00").WhichOneof("value"), "bytes_value")
|
|
568
|
+
self.assertEqual(decode_value(encode_value(b"\x00")), b"\x00")
|
|
564
569
|
|
|
565
570
|
def test_a_stale_v2_driver_refreshes_itself_and_says_so(self):
|
|
566
571
|
from unittest.mock import patch
|
|
@@ -190,6 +190,33 @@ def test_reservation_rows_name_the_device_and_offline_deployments(monkeypatch):
|
|
|
190
190
|
assert lines == ["No reservations found; @mit is offline."]
|
|
191
191
|
|
|
192
192
|
|
|
193
|
+
def test_reservation_rows_name_the_device_not_the_owner_label(monkeypatch):
|
|
194
|
+
# The lab's display_name on a reservation is "you"/"reserved", not a device.
|
|
195
|
+
start = datetime.datetime(2026, 11, 7, 10).timestamp()
|
|
196
|
+
res = lambda device, owner, mine: {"device_id": f"{DEST}:{device}", "deployment_id": DEST, "display_name": owner,
|
|
197
|
+
"mine": mine, "start_time": start, "end_time": start + 3600}
|
|
198
|
+
account = Mock(is_https_home=True)
|
|
199
|
+
account.get_reservations.return_value = {"destinations": DESTS[:1], "reservations": [
|
|
200
|
+
res("Pluto SDR", "you", True), res("Bluetooth Dongle", "reserved", False)]}
|
|
201
|
+
account.get_devices.return_value = {"destinations": [], "devices": [
|
|
202
|
+
_dev("Pluto SDR", handle="Pluto_A"), _dev("Bluetooth Dongle")]}
|
|
203
|
+
client_app, lines = _app(monkeypatch, account)
|
|
204
|
+
when = ("2026-11-07", "from", "10:00", "AM", "to", "11:00", "AM")
|
|
205
|
+
client_app._federated_reservations(mine_only=False)
|
|
206
|
+
assert _row(lines, "Pluto_A@ucla", "(you)", *when)
|
|
207
|
+
assert _row(lines, "Bluetooth_Dongle@ucla", *when)
|
|
208
|
+
shown = lines[:]
|
|
209
|
+
lines.clear()
|
|
210
|
+
client_app._federated_reservations(mine_only=True)
|
|
211
|
+
assert _row(lines, "Pluto_A@ucla", *when)
|
|
212
|
+
shown += lines
|
|
213
|
+
lines.clear()
|
|
214
|
+
monkeypatch.setattr(client_app, "session", SimpleNamespace(prompt=lambda text: ""))
|
|
215
|
+
client_app._federated_cancel()
|
|
216
|
+
assert _row(lines, "0.", "Pluto_A@ucla", *when)
|
|
217
|
+
assert not any(label in line for line in shown + lines for label in ("you@ucla", "reserved@ucla"))
|
|
218
|
+
|
|
219
|
+
|
|
193
220
|
def test_native_reservation_rows_name_the_device(monkeypatch):
|
|
194
221
|
rows = {"r1": "jdoe,3,2026-10-14 09:00:00,2026-10-14 09:30:00", "r2": "jdoe,1001,2026-10-15 13:00:00,2026-10-15 14:00:00",
|
|
195
222
|
"r3": "jdoe,77,2026-10-15 13:00:00,2026-10-15 14:00:00", "r4": "admin,3,2026-10-16 13:00:00,2026-10-16 14:00:00"}
|
|
@@ -83,6 +83,13 @@ class ProcessArgTests(unittest.TestCase):
|
|
|
83
83
|
self.assertEqual(restored, [])
|
|
84
84
|
self.assertIsInstance(unmap_arg(map_arg([1.0, 2.0])), np.ndarray)
|
|
85
85
|
|
|
86
|
+
def test_bytes_and_str_lists_keep_trailing_nuls(self):
|
|
87
|
+
self.assertEqual(unmap_arg(map_arg([b"\x01\x00", b"\x02"])), [b"\x01\x00", b"\x02"])
|
|
88
|
+
self.assertEqual(unmap_arg(map_arg((b"ab\x00",))), [b"ab\x00"])
|
|
89
|
+
self.assertEqual(unmap_arg(map_arg(["a\x00"])), ["a\x00"])
|
|
90
|
+
self.assertEqual(map_arg([1.0, 2.0]).WhichOneof("value"), "ndarray_value")
|
|
91
|
+
self.assertIsInstance(unmap_arg(map_arg([1.0, 2.0])), np.ndarray)
|
|
92
|
+
|
|
86
93
|
def test_iq16_wire_encoding_round_trips_integer_iq(self):
|
|
87
94
|
from remoterf.common.utils.process_arg import IQ16, fits_iq16, map_iq16
|
|
88
95
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/grpc/deployment_capabilities_pb2.py
RENAMED
|
File without changes
|
{remoterf-2.13.9 → remoterf-2.13.11}/src/remoterf/common/grpc/deployment_capabilities_pb2_grpc.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|