Skip to content

Commit 40f8da2

Browse files
committed
Minor fixes and formattings
1 parent 15dc8d1 commit 40f8da2

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

scripts/run_twosample_ttest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
- `--skip`(`-s`): Skip mismatching data points instead of raising errors.
1414
- `--verbose`(`-v`): Verbosity level of t-test result.
1515
- `--plot`(`-p`): Plot type and filename.
16-
* $ python3 t_test.py file1 file2 -a 0.01 -d 0.04 -s -v 2 -p histogram fig_h.png
16+
* $ python3 run_twosample_ttest.py file1 file2 -a 0.01 -d 0.04 -s -v 2 \
17+
-p histogram fig_h.png
1718
-> Calculate t-statistic with significance level of 0.01 (or 1 %)
1819
for each pair of data in `file1` and file2` that are set to have discrepancy
1920
of 0.04. Skip any mismatching data points. Display the number of pairs that

t_test/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ Usage:
8989
- `--plot`(`-p`): Plot type and filename.
9090
- Example:
9191
```shell
92-
$ python3 t_test.py file1 file2 -a 0.01 -d 0.04 -s -v 2 -p histogram fig_h.png
92+
$ python3 run_twosample_ttest.py file1 file2 -a 0.01 -d 0.04 -s -v 2
93+
-p histogram fig_h.png
9394
```
9495
→ Calculate t-statistic with significance level of 0.01 (or 1 %)
9596
for each pair of data in `file1` and `file2` that are set to have discrepancy

t_test/twosample_ttest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
5555
"""
5656

57-
# Third party libraries.
57+
# Third party imports.
5858
from matplotlib import colors
5959
import matplotlib.pyplot as plt
6060
import numpy as np
@@ -76,6 +76,7 @@
7676
DEFAULT_markersize = 36
7777
DEFAULT_cticknum = 6
7878

79+
7980
# ---- Customizable data loading/processing and plotting functions ---- #
8081

8182
def load_data(filename):

tests/test_twosample_ttest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
1919
"""
2020

21+
# Third party imports
2122
import pytest
2223

24+
# Local module imports
2325
from t_test import twosample_ttest as tt
2426

2527
TOL=1e-5 # Tolerance for approximate assertion.

0 commit comments

Comments
 (0)