Skip to content

Commit

Permalink
updated make_viz_img.sh to work again
Browse files Browse the repository at this point in the history
  • Loading branch information
anderson2981 committed May 27, 2024
1 parent 9c249bd commit 0551229
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion paraviewViz/run-paraview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ file=$1
dump=${file%.pvtu}
dump_index=`echo $dump | cut -d - -f 3`
echo "Running paraview in ${directory} on dump $dump_index"
${pvpath}/pvpython paraview-driver.py -p $directory -d $dump_index
${pvpath}/pvpython paraview-driver.py -f $directory/$file -p $directory -d $dump_index -i viz_config.py


2 changes: 1 addition & 1 deletion paraviewViz/slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
class SliceData():
def __init__(self, dataName, dataRange, camera, colorScheme,
logScale, invert, pixels, normal, origin,
cbTitle, cbBackground, cbLabels=None, cbLabelFormat=None,
cbTitle, cbBackground=0, cbLabels=None, cbLabelFormat=None,
blueRedDivergentColorCenter=None,
backgroundColor=[0., 0., 0.],
rotation=None, reflection=None,
Expand Down
15 changes: 11 additions & 4 deletions smoke_test_parsl/make_viz_img.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#!/bin/bash
#
restart_files=`ls viz_data/*fluid*.pvtu`
for file in ${restart_files[@]}; do
export pvpath="/Applications/ParaView-5.11.0.app/Contents/bin"
cd viz_data
viz_files=`ls *fluid*.pvtu`
cd ..
directory="`pwd`/viz_data"

for file in ${viz_files[@]}; do
echo "making viz images from ${file}"
#./run-paraview.sh viz_data/${file} > /dev/null 2>&1
./run-paraview.sh ${file}
dump=${file%.pvtu}
dump_index=`echo $dump | cut -d - -f 3`
echo "Running paraview in ${directory} on dump $dump_index"
${pvpath}/pvpython paraview-driver.py -f $directory/$file -p $directory -d $dump_index -i viz_config.py
done
1 change: 0 additions & 1 deletion smoke_test_parsl/run-paraview.sh

This file was deleted.

0 comments on commit 0551229

Please sign in to comment.