Initial work on branch for version 0.5 of Samovar.
Chris Pressey
2 years ago
0 | 0 |
Samovar
|
1 | 1 |
=======
|
2 | 2 |
|
3 | |
Version 0.4 | _Entry_ [@ catseye.tc](https://catseye.tc/node/Samovar)
|
|
3 |
Version 0.5 | _Entry_ [@ catseye.tc](https://catseye.tc/node/Samovar)
|
4 | 4 |
| _See also:_ [The League of Extraordinarily Dull Gentlemen](https://github.com/catseye/NaNoGenMo-Entries-2018/tree/master/league#readme)
|
5 | 5 |
∘ [The Swallows](https://github.com/catseye/The-Swallows#readme)
|
6 | 6 |
∘ [Maxixe](https://github.com/catseye/Maxixe#readme)
|
0 | |
#!/usr/bin/env python
|
|
0 |
#!/usr/bin/env python3
|
1 | 1 |
# encoding: UTF-8
|
2 | |
|
3 | |
"""\
|
4 | |
samovar {option} input.samovar
|
5 | |
|
6 | |
Driver script for Samovar assertion-retraction engine.
|
7 | |
"""
|
8 | 2 |
|
9 | 3 |
from os.path import realpath, dirname, join
|
10 | 4 |
import sys
|
33 | 33 |
help="Generate at least this many events for each scenario")
|
34 | 34 |
argparser.add_argument("--max-events",
|
35 | 35 |
type=int, default=1000000,
|
36 | |
help="Assume something's gone wrong if more than this many events are generated")
|
|
36 |
help="Conclude that something has gone wrong and abort if more than this many events are generated")
|
37 | 37 |
argparser.add_argument("--output-type",
|
38 | 38 |
choices=('naive-text', 'events-json', 'scenarios-json',),
|
39 | 39 |
default='naive-text',
|
|
45 | 45 |
argparser.add_argument("--seed",
|
46 | 46 |
type=int, default=None,
|
47 | 47 |
help="Set random seed (to select moves deterministically, when randomness-type=python)")
|
|
48 |
argparser.add_argument('--version', action='version', version="%(prog)s 0.5")
|
48 | 49 |
|
49 | 50 |
options = argparser.parse_args(args)
|
50 | 51 |
|