[Test Case]: TC-5 Cross-mode state load and tensor magnitude color map

オープン
#245 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 6 日以内に返信

@AnSergioFern がすでに取り組んでいます。

2026年11月23日 から。

評価

この issue はまだ評価されていません。

説明

test case
📝 Description

Automated E2E regression (P2, only after the P1 test cases are done, otherwise moved to a follow-up story). Verify that a state saved in one rendering mode loads correctly in the other mode, including a 9-component tensor variable colored by magnitude.

Same-mode save/load is already covered by tests/integration/test_save_load_state.py and tests/e2e/regressions/test_save_load_state.py and is not repeated here.

📜 Steps
  1. CLIENT instance with tensors9.vtp. Color by Tensors9, component Magnitude. Change the camera and a part opacity. Save state to a temp dir.
  2. Start a fresh SERVER instance without input (empty scene), open the page, call load_state(dir), then reload.
  3. Repeat in the reverse direction (SERVER save, CLIENT load).

Note: load_state restores datasets from snapshots only when the scene is empty. On a non-empty scene it only applies the state to datasets already loaded. This is by design.

🧪 Expected Results

After load and after reload in the other mode:

  • color_by is Tensors9 and color_by_component is the magnitude value (-1).
  • The legend title and range match the source.
  • The part opacity matches, and the camera matches within 1e-3.
  • Only these named fields are compared. No unexpected console or page errors.
  • Negative validation: positive and negative reports are attached here.
📁 Test Data
  • examples/assets/tensors9.vtp (Tensors9, 9 components)
🔗 Related Issues
  • Stories: #20, #22, #23, #24
  • Parent story: linked as sub-issue
主要言語
Python
スター
3
フォーク
1
平均マージ
5日 9時間
マージ済み PR(30日)
23

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ansys/Visual-Interactive-Simulation-Object-Renderer のほかの issue

ansys/Visual-Interactive-Simulation-Object-Renderer の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。