|
RadCluster
Graph-based cluster dynamics for irradiated materials
|
Go to the source code of this file.
Namespaces | |
| namespace | score_six_targets |
Variables | |
| score_six_targets.encoding | |
| score_six_targets.errors | |
| score_six_targets.HERE = Path(__file__).resolve().parent | |
| score_six_targets.TGT = json.load(open(HERE / 'targets_330C_15dpa.json')) | |
| score_six_targets.OBS = TGT['observables'] | |
| list | score_six_targets.ORDER = ['N_loops_100', 'd_100_nm', 'N_loops_111', 'd_111_nm', 'N_voids', 'd_cavity_nm'] |
| dict | score_six_targets.SHORT |
| int | score_six_targets.res = Path(sys.argv[1]) if len(sys.argv) > 1 else HERE / 'results/S8_15dpa.jsonl' |
| int | score_six_targets.labf = Path(sys.argv[2]) if len(sys.argv) > 2 else res.parent.parent / 'design/S8_labels.json' |
| int | score_six_targets.labels = json.load(open(labf)) if labf.exists() else {} |
| score_six_targets.rows = sorted((json.loads(l) for l in open(res)), key=lambda r: r['row_id']) | |
| str | score_six_targets.hdr = '%-20s %6s' % ('row', 'dose') + ''.join('%12s' % SHORT[k] for k in ORDER) + '%7s %8s %6s' % ('in-rng', 'f_100', 'flags') |
| int | score_six_targets.lab = labels.get(str(r['row_id']), str(r['row_id'])) |
| score_six_targets.cells | |
| score_six_targets.n_ok | |
| score_six_targets.v = r.get(k) | |
| score_six_targets.o = OBS[k] | |
| score_six_targets.ok = o['hi'] | |
| score_six_targets.rat = v / o['target'] if o['target'] else float('nan') | |
| tuple | score_six_targets.s = 1e4 else ('%.2f' % v) |
| score_six_targets.N1 | |
| score_six_targets.N0 | |
| score_six_targets.f100 = N0 / (N0 + N1) if (N0 and N1) else float('nan') | |
| list | score_six_targets.flags = [] |
| list | score_six_targets.out = [] |
| score_six_targets.t | |