Skip to content

Commit 6b73cf4

Browse files
committed
#507: restore config test for viz deprecation
1 parent 9884cb1 commit 6b73cf4

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

tests/unit/IO/test_lbs_visualizer_deprecation.py

+6
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,11 @@ def test_lbs_visualizer_deprecation(self):
1818
except DeprecationWarning as e:
1919
assert str(e) == "LBAF's Visualizer has been deprecated and will be removed in a future release. Visualizations should be generated with DARMA/vt-tv."
2020

21+
def test_lbs_visualizer_config(self):
22+
config_file = os.path.join(os.path.dirname(os.path.dirname(__file__)), "config", "conf_wrong_visualization.yml")
23+
pipes = subprocess.Popen(["python", "src/lbaf", "-c", config_file], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
24+
std_err = pipes.communicate()[1].decode("utf-8")
25+
assert "Visualization enabled but vttv not found. No visualization will be generated." in std_err
26+
2127
if __name__ == "__main__":
2228
unittest.main()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Specify input
2+
from_data:
3+
data_stem: ../data/synthetic_lb_data/data
4+
phase_ids:
5+
- 0
6+
7+
# Specify work model
8+
work_model:
9+
name: AffineCombination
10+
parameters:
11+
alpha: 1.0
12+
beta: 0.0
13+
gamma: 0.0
14+
15+
# Specify algorithm
16+
algorithm:
17+
name: InformAndTransfer
18+
phase_id: 0
19+
parameters:
20+
n_iterations: 8
21+
n_rounds: 4
22+
fanout: 4
23+
order_strategy: element_id
24+
transfer_strategy: Recursive
25+
criterion: Tempered
26+
max_objects_per_transfer: 8
27+
deterministic_transfer: true
28+
29+
# Specify output
30+
output_dir: ../../output
31+
output_file_stem: output_file
32+
visualization:
33+
x_ranks: 2
34+
y_ranks: 2
35+
z_ranks: 1
36+
object_jitter: 0.5
37+
rank_qoi: load
38+
object_qoi: load
39+
force_continuous_object_qoi: true
40+
output_visualization_dir: ../../output
41+
output_visualization_file_stem: output_file

0 commit comments

Comments
 (0)