Skip to content

Commit

Permalink
simplified the nan comparison for the regtests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocamilloni committed Nov 29, 2023
1 parent 6b45e2c commit 641b365
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions regtest/scripts/fixzeroes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ grep -E '[^[:print:]]' $file 2> /dev/null && exit 0

sed "s/-\(0\.0*0 \)/ \1/g;
s/-\(0\.0*0$\)/ \1/g" $file > $file.$$.tmp
sed "s/-\(nan \)/\1/g;
s/-\(nan$\)/\1/g" $file.$$.tmp > $file.$$.tmp2
sed "s/-nan/nan/g" $file.$$.tmp > $file.$$.tmp2
mv $file.$$.tmp2 $file

1 comment on commit 641b365

@PlumedBot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found broken examples in automatic/a-masterclass-22-09.txt
Found broken examples in automatic/a-masterclass-22-11.txt
Found broken examples in automatic/a-masterclass-22-12.txt
Found broken examples in automatic/performance-optimization.txt
Found broken examples in automatic/a-trieste-6.txt
Found broken examples in automatic/munster.txt
Found broken examples in automatic/ANN.tmp
Found broken examples in automatic/EDS.tmp
Found broken examples in automatic/EMMI.tmp
Found broken examples in automatic/ENVIRONMENTSIMILARITY.tmp
Found broken examples in automatic/FOURIER_TRANSFORM.tmp
Found broken examples in automatic/FUNCPATHGENERAL.tmp
Found broken examples in automatic/FUNCPATHMSD.tmp
Found broken examples in automatic/FUNNEL.tmp
Found broken examples in automatic/FUNNEL_PS.tmp
Found broken examples in automatic/GHBFIX.tmp
Found broken examples in automatic/INCLUDE.tmp
Found broken examples in automatic/MAZE_MEMETIC_SAMPLING.tmp
Found broken examples in automatic/MAZE_OPTIMIZER_BIAS.tmp
Found broken examples in automatic/MAZE_RANDOM_ACCELERATION_MD.tmp
Found broken examples in automatic/MAZE_RANDOM_WALK.tmp
Found broken examples in automatic/MAZE_SIMULATED_ANNEALING.tmp
Found broken examples in automatic/MAZE_STEERED_MD.tmp
Found broken examples in automatic/PIV.tmp
Found broken examples in automatic/PLUMED.tmp
Found broken examples in MiscelaneousPP.md

Please sign in to comment.