Skip to content

ths_sanity

Console script for querying tables before and after import/migration to ensure that we have what we expect.

TODO this script needs a little housekeeping.

ths_ds_sanity

Import NSHM Model hazard curves to new revision 4 models.

Usage:

ths_ds_sanity [OPTIONS] COMMAND [ARGS]...

Options:

  --help  Show this message and exit.

count-rlz

Count the realisations from SOURCE by calculation id

Usage:

ths_ds_sanity count-rlz [OPTIONS] SOURCE

Options:

  -x, --strict                  abort if consistency checks fail
  -ER, --expected-rlzs INTEGER
  -v, --verbose
  -d, --dry-run
  --help                        Show this message and exit.

random-rlz-new

Randomly select realisations from Dynamodb and compare with dataset values.

Usage:

ths_ds_sanity random-rlz-new [OPTIONS] DATASET COUNT

Options:

  -i, --iterations INTEGER
  -df, --defragged          use defragged partition structure
  -v, --verbose
  --help                    Show this message and exit.