Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/lamont/test/life2/1-go.sh
ViewVC logotype

View of /branches/lamont/test/life2/1-go.sh

Parent Directory Parent Directory | Revision Log Revision Log

Revision 3367 - (download) (as text) (annotate)
Mon Nov 2 13:05:52 2015 UTC (4 years, 4 months ago) by glk
File size: 517 byte(s)
bug: cells do not reliably have 8 neighbors
#!/usr/bin/env bash
set -o errexit
set -o nounset
function junk {
  JUNK="$JUNK $@"
function cleanup {
  rm -rf $JUNK
trap cleanup err exit int term

DDRO="../../bin/diderotc --disable-high-vn --disable-mid-vn --disable-low-vn"

$DDRO --exec life.diderot

if true; then
  for I in $(seq 0 3); do
    II=$(printf %02u $I)
    echo $II
    ./life -iterMax $I
    unu convert -t uchar -i val.nrrd |
    unu resample -s x10 x10 -k box |
    unu quantize -b 8 -min 0 -max 1 -o $II.png
junk val.nrrd

ViewVC Help
Powered by ViewVC 1.0.0