pmokeDOCS
設定

設定リファレンス

pmoke config schema version 7の自動生成fieldリファレンス。

型付きconfig metadata registryから自動生成。手動編集は上書き対象。

JSON Schema · pmoke config explain

version

path型必須状態既定値 / 候補説明・制約
versioninteger必須6, 7設定スキーマのバージョン 新規設定と移行済み設定はバージョン7。バージョン6も受理。 制約: must equal 6 or 7

scope

path型必須状態既定値 / 候補説明・制約
scopetable必須-オシロスコープ設定 登録済みモデルと通信URIの組み合わせ。
scope.modelstring必須DHO5108オシロスコープモデル instruments crateに登録されたモデル名との一致。 制約: must be a registered oscilloscope model
scope.connectionconnection URI必須tcp://, visa:, gpib://オシロスコープの通信URI DHO5108で使用するdirect TCP/IP。Prologix transport対象外。 制約: transport must be supported by the model and build features

generator

path型必須状態既定値 / 候補説明・制約
generatortable任意absent任意のファンクションジェネレータ設定 triggerまたは自動測定系commandで必要な装置設定。 制約: required by trigger, autoshot, automeasure, and auto
generator.modelstring条件付きWF1946Bファンクションジェネレータモデル generator table使用時に必要な登録名。 制約: must be a registered generator model
generator.connectionconnection URI条件付きgpib://, prologix-tcp://, prologix-serial://ファンクションジェネレータの通信URI native GPIBまたはPrologix TCP/serialの選択。 制約: transport must be supported by the model and build features

data

path型必須状態既定値 / 候補説明・制約
datatable必須-取得データ方針 標準波形形式と任意のスクリーンショット取得の設定。
data.outputstring enum必須csv, raw, both取得波形の保存形式 大規模取得向けraw、CSV併記向けboth。
data.inputstring enum必須csv, raw, auto解析波形の入力形式 利用可能な標準データを選ぶauto。検証済みraw優先。
data.screenshotboolean任意false; true, falseオシロスコープ画面取得 display transfer対応モデル・通信方式での任意取得。 制約: DHO5108 capture requires TCP/IP or USB-TMC

sensors

path型必須状態既定値 / 候補説明・制約
sensorsarray of tables条件付き[]センサーチャンネル一覧 各channelと単一scale方針の対応。 制約: channels must not overlap reference or lock-in signal channels

sensors[]

path型必須状態既定値 / 候補説明・制約
sensors[].channelinteger必須-センサーチャンネル番号 DHO5108向け1以上8以下の番号。 制約: 1 <= value <= 8; must be unique across all channel roles
sensors[].scaleinline table union必須{ factor = ... }, { max_abs = ..., polarity = ... }センサー変換規則 直接係数または最大絶対値正規化の択一。 制約: factor and max_abs forms are mutually exclusive
sensors[].scale.factorfloat条件付き-線形センサー変換係数 積分センサー値への直接乗算。 制約: must be finite and non-zero
sensors[].scale.max_absfloat条件付き-最大絶対値の正規化目標 測定最大絶対値に対応する正の目標値。 制約: must be finite and positive
sensors[].scale.polarityinteger enum条件付き-1, 1最大絶対値正規化の極性 max_abs使用時の必須符号。 制約: must equal -1 or 1
sensors[].labelstring必須-センサープロットラベル TOML literal stringで指定可能なMatplotlib mathtext。 制約: must not be empty
sensors[].unitstring必須-変換後センサーの出力単位 表・プロット・解析保存headerでの単位。 制約: must not be empty

pulse

path型必須状態既定値 / 候補説明・制約
pulsetable必須-パルス背景区間 パルス前後のベースライン領域。 制約: background windows must not overlap
pulse.background_beforeinline time window · s必須-パルス前背景区間 有限なstartとendのinline table。 制約: start < end
pulse.background_afterinline time window · s必須-パルス後背景区間 有限なstartとendのinline table。 制約: start < end

reference

path型必須状態既定値 / 候補説明・制約
referencetable必須-EOM駆動用正弦波の解析設定 EOMへ入力するファンクションジェネレータ正弦波の記録チャンネル、FFT区間、fit間引きを指定。
reference.channelinteger必須-EOM駆動信号の記録チャンネル EOMへ入力するファンクションジェネレータ正弦波を記録するDHO5108の1以上8以下のチャンネル。 制約: 1 <= value <= 8; must be unique across all channel roles
reference.fft_windowinline time window · s必須-EOM駆動信号FFTの時間区間 記録した正弦波の安定区間を表す有限なstartとend。 制約: start < end
reference.stride_samplesinteger · samples必須-EOM駆動正弦波fitの間引き幅 計算量と時間分解能の調整値。 制約: must be positive
reference.window_samplesinteger · samples必須-局所EOM駆動正弦波fitの窓幅 FFT推定値周辺で使用するsample数。 制約: must be positive

lockin

path型必須状態既定値 / 候補説明・制約
lockintable必須-数値lock-in設定 信号channel、並列度、出力間引き、low-pass filterの指定。
lockin.channelsinteger array条件付き-lock-in 復調対象チャンネル lock-inと後段解析で必要な1件以上のchannel番号。 制約: each value must be in 1..=8; must be unique across all channel roles
lockin.workersinteger必須-lock-inの並列worker数 物理CPU数付近を初期値とする並列度。 制約: must be positive
lockin.stride_samplesinteger · samples必須-lock-in 出力間引き幅 入力sample rateを割るsample数。出力sample rateを決定。 制約: must be positive
lockin.windowtable必須-lock-in 解析窓契約(schema v7) v7ではlockin.filterをwindow/estimator分離に置換。schema v6以前はlockin.filterを使用。
lockin.window.kindstring enum必須reference_cycleslock-in 窓種別 v1の窓はreference_cyclesのみ。半窓幅を参照周期単位で測る。
lockin.window.half_window_cyclesfloat · reference cycles必須-参照周期単位の半窓幅 boxcar積分窓を参照周期単位で指定する半窓幅。 制約: must be finite and positive
lockin.window.edge_policystring enum必須legacy_trimlock-in 端部処理 従来boxcarの端部トリム動作を維持する。
lockin.estimatortagged table必須-lock-in 推定器選択(schema v7) boxcar_legacyは従来推定器。joint_harmonic_glsは独自設定つき明示opt-in。推定器選択はfilter kindではない。 制約: GLS-only settings are rejected under boxcar_legacy
lockin.estimator.kindstring enum必須boxcar_legacy, joint_harmonic_glslock-in 推定器アルゴリズム boxcar_legacyは従来推定器。joint_harmonic_glsは位相考慮joint harmonic推定器で設定ブロック必須。
lockin.estimator.fit_harmonicsinteger array必須-joint fit対象高調波 昇順・重複なし・正の高調波。出力高調波をすべて含む。モデル規模1 + 2 * lenはパラメータ上限内。 制約: must be ascending unique positive harmonics
lockin.estimator.output_harmonicsinteger array必須1, 2, 3, 4, 5, 6joint推定器の出力高調波 v1では1から6まで過不足なく。 制約: must be exactly [1, 2, 3, 4, 5, 6]
lockin.estimator.envelope_degreeinteger任意0; 0包絡多項式次数 v1では0のみ。包絡ドリフト項は未対応。 制約: must be exactly 0
lockin.estimator.noise_modestring enum必須identity, phase_diagonal, stationary_correlated, phase_correlatedGLS雑音モデル種別 白色化契約の選択。identity・位相別対角・定常相関・位相相関。
lockin.estimator.covariance_outputstring enum任意diagonal; none, diagonal, fullXY共分散の出力形式 推定器共分散のrun成果物への書き出し量を制御。
lockin.estimator.failure_policystring enum任意error; error推定器失敗時方針 v1ではerrorのみ。失敗時は代替動作せずrun中断。
lockin.estimator.calibration_sourcestring enum任意artifact; artifact, prepulsejoint推定器のcalibration取得元 artifactはファイル束縛の現行動作。prepulseはpulse.background_beforeからLI実行毎にchannel毎の雑音モデルを一度だけ導出し、LI provenanceにprepulse_calibration_digestを記録。prepulse選択時はcalibrationsは空でなければならない。
lockin.estimator.calibrationstable array任意[]不変calibration束縛。lock-in channel毎に1件 channelとcalibration成果物パス+期待SHA-256の束縛。未展開テンプレートは拒否。artifact方式ではchannel毎に1件必須。calibration_sourceがprepulseの場合は空でなければならない。 制約: exactly one entry per lockin.channels value (artifact mode)
lockin.estimator.solver_tolerancestable任意defaultsjoint solver許容値の上書き joint推定器とpre-pulse nuisance fit用のTOL-06/07ポリシー。すべて任意。テーブル欠落・キー欠落は凍結済み既定値を保持し、既存v7設定の動作はバイト同一。
lockin.estimator.solver_tolerances.rank_tolfloat任意1e-10ランク判定の相対特異値フロア 有限かつ正。既定1e-10。小さいほど弱い特異方向を残し、大きいほど早期に棄却。 制約: must be finite and positive
lockin.estimator.solver_tolerances.max_conditionfloat任意1e8スケール済みdesignの条件数棄却閾値 有限かつ正。既定1e8。超過ウィンドウは公開せず失敗扱い。 制約: must be finite and positive
lockin.estimator.solver_tolerances.max_noise_conditionfloat任意1e10実現雑音共分散の条件数上限 有限かつ正。既定1e10。実行時共分散の条件付けを制限(TOL-07)。 制約: must be finite and positive
lockin.estimator.solver_tolerances.max_jitter_v2float · normalized-lag units任意0.0正規化lag単位のbounded-jitter上限 有限かつ非負。既定0.0(無効)。非SPD Toeplitz因子は暗黙正則化せず失敗扱い。 制約: must be finite and non-negative
lockin.estimator.scs_adequacytable任意defaultsSCS adequacyゲートの上書き pre-pulse導出用FR-06 split-halfポリシー。すべて任意で既定は凍結値。ゲート自体は全noise_modeで必須のまま。
lockin.estimator.scs_adequacy.lagsinteger任意4adequacyのlag数 正の整数。既定4。split-half検査で位相octant間にわたり比較するlag数。 制約: must be positive
lockin.estimator.scs_adequacy.min_pairs_per_cellinteger任意10位相セル毎の最小lagペア数 正の整数。既定10。これ未満のセルはadequacy証拠なし扱い。 制約: must be positive
lockin.estimator.scs_adequacy.max_phase_spreadfloat任意0.2学習位相spreadゲート 有限かつ非負。既定0.2。これを超える不一致は導出拒否。緩和は承認事項。失敗時は区間・データを再取得。 制約: must be finite and non-negative
lockin.estimator.scs_adequacy.max_reserved_shiftfloat任意0.2reserved-shiftゲート 有限かつ非負。既定0.2。これを超えるshiftは導出拒否。 制約: must be finite and non-negative
lockin.filtertagged inline table必須-lock-in low-pass filter 設定 schema v6以前はboxcar_legacyのみ。v7ではlockin.window/lockin.estimatorに置換。 制約: fields from other filter kinds are rejected
lockin.filter.kindstring enum必須boxcar_legacylock-in filter アルゴリズム 現在のLPFはboxcar_legacyのみ。過去のFIR/IIR kindは移行診断のためだけに読み取る。
lockin.filter.half_window_cyclesfloat · reference cycles必須-参照周期単位の半窓幅 boxcar積分窓を参照周期単位で指定する半窓幅。 制約: must be finite and positive
lockin.debug_outputboolean任意false; true, falselock-in debug artifact 出力 filter調査時のみ有効化する大容量artifact出力。
lockin.debug_labelstring任意absentdebug artifactの安全なsuffix 短いASCII filename-safe文字列。 制約: 1-64 ASCII alphanumeric, '.', '_', or '-'; must not be '.' or '..'
lockin.debug_overwriteboolean任意false; true, falsedebug artifact 上書き方針 同名debug出力の置換許可。
lockin.snr_background_windowinline time window · s任意absentSNR 診断用背景区間 有限なstartとendの任意inline table。 制約: start < end
lockin.snr_signal_windowinline time window · s任意absentSNR 診断用信号区間 有限なstartとendの任意inline table。 制約: start < end
lockin.save_npyboolean任意false; true, falselock-in結果のNumPy出力 標準CSVに追加するNPY artifact。

phase

path型必須状態既定値 / 候補説明・制約
phasetable必須-位相回転設定 第1から第6高調波のoffset。
phase.offsetsfloat or expression array · rad必須-6高調波の位相offset pi/2などの数式指定に対応するrad値。 制約: must contain exactly 6 finite values

moke

path型必須状態既定値 / 候補説明・制約
moketable必須-Kerr角度の変換設定 校正用センサー、計算方法、最終係数を指定。
moke.sensorinteger必須-Kerr角度の校正に使用するセンサーチャンネル sensors配列に存在するチャンネルを指定。 制約: must reference sensors[].channel
moke.methodstring enum必須standard, harmonicsKerr角度の計算方法 standardまたはharmonics実装を選択。
moke.factorfloat必須-Kerr角度の最終変換係数 選択したKerr角度計算後に乗算する値。 制約: must be finite

signals

path型必須状態既定値 / 候補説明・制約
signalsarray of tables任意[]生信号読出し一覧 lock-in窓で平均するchannel毎の指定。 制約: channels must not overlap sensor, reference, or lock-in channels

signals[]

path型必須状態既定値 / 候補説明・制約
signals[].channelinteger必須-信号チャンネル番号 DHO5108向け1以上8以下の番号。 制約: 1 <= value <= 8; must be unique across all channel roles
signals[].labelstring必須-信号プロットラベル TOML literal stringで指定可能なMatplotlib mathtext。 制約: must not be empty
signals[].unitstring必須-平均信号の出力単位 表・プロット・解析保存headerでの単位。 制約: must not be empty

plot

path型必須状態既定値 / 候補説明・制約
plottable任意defaultsプロット生成設定 表示・保存、間引き、失敗方針の指定。
plot.modestring enum任意save; off, save, interactive, bothplot出力mode batch向けsaveとMatplotlib window向けinteractive。
plot.max_pointsinteger · points per series任意100000プロット入力の最大点数 大規模取得時のMatplotlib応答性調整値。 制約: must be positive
plot.decimationstring enum任意stride; none, stride, min_maxプロット間引きアルゴリズム 狭い極値の保持に適したmin_max。
plot.on_errorstring enum任意warn; warn, failプロット失敗方針 解析成功を保持するwarnと致命扱いのfail。
plot.output_dirstring任意absent非推奨のplot directory互換field version 6で受理後に無視される値。artifactは標準run layout。 制約: ignored with a warning

目次