mms-mp-test
Linux USB 후보 장치를 확인한 뒤 사용자 NPZ 파일의 trajectory 배열을 읽습니다.
pip install mms-mp-test
from mp_test import load_trajectory
trajectory = load_trajectory("franka_custom_tabletop_seed43_k1_configuration.npz")
load_trajectory(npz_path: str | os.PathLike[str]) -> numpy.ndarray의 경로는 필수입니다. 데이터 파일은 배포물에 포함하지 않습니다. 배열 값, shape, dtype을 그대로 반환하며 특정 크기를 요구하지 않습니다. 제공된 예제 파일은 (17, 7)의 float64 배열입니다.
import 시 장치 검색이나 데이터 파일 읽기를 하지 않습니다. 호출할 때마다 Linux /sys/bus/usb/devices를 확인하며, 후보가 있을 때만 numpy.load(..., allow_pickle=False)로 파일을 읽고 닫습니다.
후보 조건은 다음 중 하나입니다.
- VID가
151f - 제조사 또는 제품명에
Opal Kelly포함 (대소문자 무시) - 제품명이
XEM7310또는XEM7360으로 시작 (대소문자 무시)
이는 USB 식별이며 FPGA 동작, 펌웨어, 로드된 설계를 검증하지 않습니다.
| 예외 | 원인 |
|---|---|
RuntimeError |
Linux가 아님, USB 목록 접근 실패, 후보 없음 (메시지로 구분) |
FileNotFoundError |
후보 확인 후 지정한 파일이 없음 |
KeyError |
trajectory 키 누락 |
ValueError |
잘못된 NPZ 또는 pickle이 필요한 배열 |
파일 자체의 접근 권한 오류는 PermissionError로 전달됩니다.
메타데이터는 계획대로 Python >=3.8, NumPy >=1.26입니다. 단, NumPy 1.26은 Python 3.9 이상이 필요하므로 Python 3.8에서는 이 의존성 조합을 설치할 수 없습니다. 실제 사용에는 Python 3.9 이상이 필요합니다.
기존 소스 스크립트도 사용할 수 있습니다.
python3 detect_opalkelly.py --json
개발 및 배포 검증:
python3 -m venv .venv
.venv/bin/python -m pip install -e . build twine
.venv/bin/python -m unittest discover -v
.venv/bin/python -m build
.venv/bin/python -m twine check dist/*
라이선스와 작성자 정보는 제공되지 않아 지정하지 않았습니다. PyPI 게시 상태와 실물 장치 검증 여부는 VALIDATION.md를 참고하세요.
Metadata
Release files for mms-mp-test 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mms_mp_test-0.1.0.tar.gz | 5.6 kB | Without provenance | Details for mms_mp_test-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mms_mp_test-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mms_mp_test-0.1.0-py3-none-any.whl |
Total release size: 11.6 kB
Release files / mms_mp_test-0.1.0.tar.gz
| Download URL | mms_mp_test-0.1.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22eab8a72afcb9a31444218a19f4e91f8a748618934a13492cc82ac01fe92720
|
|
BLAKE2b-256 checksum How to use checksums |
2d80c2668c3861dcab5f08cbfee7f9758a5263f3ce628de1a61e03c9b5637a63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / mms_mp_test-0.1.0-py3-none-any.whl
| Download URL | mms_mp_test-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ecb2256afc26eda11f83f95f1b6a1e578b67f5aa1dfcfa26e109d4ef8c0fc28
|
|
BLAKE2b-256 checksum How to use checksums |
c83929fff0a62cc4a27a5d6444eb58e8e006b2137a0e0701346e1f814b29bdbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for mms-mp-test 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.