Skip to content

Commit 336629d

Browse files
committed
Reorganization
Output is now put into a separate output/ folder. This allows for using a .txt config file without getting it confused with the output, and is also just neater overall.
1 parent d40d84b commit 336629d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
*.txt
2-
*.csv
1+
output/
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/bash
22

3+
mkdir -p output
34
for version in 2.7 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12
45
do
5-
python$version dictresize.py $1 > $1$version.txt
6+
python$version dictresize.py $1 > output/$1$version.txt
67
done

make_csv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
def get_data(version):
10-
with open(f'raw{version}.txt') as f:
10+
with open(f'output/raw{version}.txt') as f:
1111
return [l.strip() for l in f]
1212

1313

@@ -28,7 +28,7 @@ def get_data(version):
2828
]
2929

3030

31-
with open('results.csv', 'w') as f:
31+
with open('output/results.csv', 'w') as f:
3232
w = csv.writer(f)
3333
# Tag versions with a ".x" patch version so that CSV viewers don't
3434
# mistake "3.10" as numeric and drop the zero.

0 commit comments

Comments
 (0)