update plot to force units

This commit is contained in:
ykcheungab
2026-09-01 16:24:12 +08:00
parent 8cacb12abc
commit e7789c86cb
31 changed files with 767 additions and 77 deletions
+5 -1
View File
@@ -9,6 +9,7 @@ $DistDir = Join-Path $RepoRoot "dist"
$WorkDir = Join-Path $RepoRoot "build\pyinstaller_work"
$SpecPath = Join-Path $PSScriptRoot "sensor_bench.spec"
$RepoConfig = Join-Path $RepoRoot "config"
$RepoSensors = Join-Path $RepoRoot "sensors"
if (-not (Get-Command conda -ErrorAction SilentlyContinue)) {
throw "conda was not found on PATH. Open an Anaconda Prompt or initialize conda for PowerShell."
@@ -42,8 +43,11 @@ try {
conda run -n $EnvName python -m PyInstaller --noconfirm --clean --distpath "$DistDir" --workpath "$WorkDir" "$SpecPath"
if ($LASTEXITCODE -ne 0) { throw "PyInstaller failed." }
# Public package only: copy exhibition config/. Never ship internal/ operator assets.
# Public package only: copy exhibition config/ and sensors/. Never ship internal/ operator assets.
Copy-Item -Recurse -Force $RepoConfig (Join-Path $DistDir "SensorBench")
if (Test-Path $RepoSensors) {
Copy-Item -Recurse -Force $RepoSensors (Join-Path $DistDir "SensorBench")
}
$InternalLeak = Join-Path $DistDir "SensorBench\internal"
if (Test-Path $InternalLeak) {
throw "Public dist must not contain internal/: $InternalLeak"