|
1 | 1 | #!/usr/bin/env python |
2 | 2 | # coding=utf-8 |
3 | | -# Copyright (c) 2015-2021 UT-BATTELLE, LLC |
| 3 | +# Copyright (c) 2015-2022 UT-BATTELLE, LLC |
4 | 4 | # All rights reserved. |
5 | 5 | # |
6 | 6 | # Redistribution and use in source and binary forms, with or without |
@@ -283,8 +283,14 @@ def main(args): |
283 | 283 | # H0: enemble_mean_ΔRMSD_{t,var} is (statistically) zero and therefore, the simulations are identical |
284 | 284 | null_hypothesis = ttest.applymap(lambda x: 'Reject' if x[1] < args.p_threshold else 'Accept') |
285 | 285 |
|
286 | | - domains = null_hypothesis.applymap(lambda x: x == 'Reject').any().transform( |
287 | | - lambda x: 'Fail' if x is True else 'Pass') |
| 286 | + domains = ( |
| 287 | + null_hypothesis |
| 288 | + .query(' seconds >= @args.inspect_times[0] & seconds <= @args.inspect_times[-1]') |
| 289 | + .applymap(lambda x: x == 'Reject').all().transform( |
| 290 | + lambda x: 'Fail' if x is True else 'Pass' |
| 291 | + ) |
| 292 | + ) |
| 293 | + |
288 | 294 | overall = 'Fail' if domains.apply(lambda x: x == 'Fail').any() else 'Pass' |
289 | 295 |
|
290 | 296 | ttest.reset_index(inplace=True) |
@@ -386,7 +392,7 @@ def plot_bit_for_bit(args): |
386 | 392 |
|
387 | 393 | ax.semilogy(xx, yy + 1.0, linestyle='-', marker='o', color=pf_color_picker.get('pass')) |
388 | 394 |
|
389 | | - ax.plot(args.time_slice, [0.5, 0.5], 'k--') |
| 395 | + ax.plot(args.time_slice, [args.p_threshold * 100] * 2, 'k--') |
390 | 396 | ax.text(np.mean(args.time_slice), 10 ** -1, 'Fail', fontsize=15, color=pf_color_picker.get('fail'), |
391 | 397 | horizontalalignment='center') |
392 | 398 | ax.text(np.mean(args.time_slice), 0.5 * 10 ** 1, 'Pass', fontsize=15, color=pf_color_picker.get('pass'), |
|
0 commit comments