Skip to content

Commit

Permalink
better bash scripts for the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
otvam committed Sep 8, 2023
1 parent add5d4a commit 9a75c13
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/run_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
file_point = os.path.join(PATH_ROOT, FOLDER_NAME, EXAMPLE_NAME, "point.yaml")
file_plotter = os.path.join(PATH_ROOT, FOLDER_CONFIG, "plotter.yaml")

# plot type
# plot tag (from plotter.yaml)
tag_plot = [
"material",
"V_c_abs",
Expand Down
5 changes: 4 additions & 1 deletion examples/run_plotter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ FILE_SOLUTION="$PATH_ROOT/$FOLDER_NAME/$EXAMPLE_NAME/solution.pck"
FILE_POINT="$PATH_ROOT/$FOLDER_NAME/$EXAMPLE_NAME/point.yaml"
FILE_PLOTTER="$PATH_ROOT/$FOLDER_CONFIG/plotter.yaml"

# plot tag (from plotter.yaml)
TAG_PLOT="material V_c_abs J_c_norm_re B_m_norm_abs H_norm_abs convergence residuum"

# run
pypeec plotter \
--solution $FILE_SOLUTION \
--point $FILE_POINT \
--plotter $FILE_PLOTTER \
--tag_plot material V_c_abs J_c_norm_re B_m_norm_abs H_norm_abs convergence residuum \
--tag_plot $TAG_PLOT \
--plot_mode qt
2 changes: 1 addition & 1 deletion examples/run_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
file_point = os.path.join(PATH_ROOT, FOLDER_NAME, EXAMPLE_NAME, "point.yaml")
file_viewer = os.path.join(PATH_ROOT, FOLDER_CONFIG, "viewer.yaml")

# plot type
# plot tag (from viewer.yaml)
tag_plot = ["domain", "connection"]

# run viewer
Expand Down
5 changes: 4 additions & 1 deletion examples/run_viewer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ FILE_VOXEL="$PATH_ROOT/$FOLDER_NAME/$EXAMPLE_NAME/voxel.pck"
FILE_POINT="$PATH_ROOT/$FOLDER_NAME/$EXAMPLE_NAME/point.yaml"
FILE_VIEWER="$PATH_ROOT/$FOLDER_CONFIG/viewer.yaml"

# plot tag (from viewer.yaml)
TAG_PLOT="domain connection"

# run
pypeec viewer \
--voxel $FILE_VOXEL \
--point $FILE_POINT \
--viewer $FILE_VIEWER \
--tag_plot domain connection \
--tag_plot $TAG_PLOT \
--plot_mode qt

0 comments on commit 9a75c13

Please sign in to comment.