Skip to content

Commit 1fa9ee4

Browse files
committed
citation
1 parent 0a581c4 commit 1fa9ee4

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

CITATION.cff

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
title: "OpenData: document Analyzer"
2+
license: MIT
3+
authors:
4+
- family-names: LU
5+
given-names: SHENGXING
6+
cff-version: 1.2.0
7+
preferred-citation:
8+
authors:
9+
- family-names: LU
10+
given-names: SHENGXING
11+
title: "OpenData: document Analyzer"
12+
type: article
13+
year: 2023
14+
identifiers:
15+
- description: "Project ID"
16+
type: doi
17+
value: 10.5281/zenodo.7756241

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ If you use our code or results in your research, please cite our paper:
8383
@article{Opendata,
8484
title = {{Opendata}},
8585
author = {SHENGXING LU},
86-
year = {2022},
86+
year = {2023},
8787
doi = {https://zenodo.org/badge/latestdoi/599152914}
8888
}

script.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def action(folderPath, folderComplPath, wcf, lolf, fpaf):
5353
# word cloud from the frequency distribution
5454
wordcloud = WordCloud().generate_from_frequencies(freq_dist)
5555

56-
# save as PNG
56+
# save
5757
plt.imshow(wordcloud, interpolation='bilinear')
5858
plt.axis("off")
5959
plt.savefig(wcf+'/'+ filename[0:filename.find('.')] +'.png')
@@ -68,9 +68,10 @@ def action(folderPath, folderComplPath, wcf, lolf, fpaf):
6868
# append the number of figures to the list
6969
for i in range(num_figures_in_file):
7070
num_figures.append(filename)
71+
7172
#create list of links
72-
7373
f = open(lolf+"/"+ filename[0:filename.find('.')] +'.txt', "w")
74+
7475
# find all the biblStruct elements
7576
biblstructs = tree.xpath("//tei:biblStruct", namespaces=ns)
7677

test/test_script.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
# Import necessary modules
2-
31
import os
42
import sys
53
from pathlib import Path
64
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
7-
# Import the function to test
85
from script import action
96

10-
# Define the test function
117
def test_action():
128

13-
# Call the function with test inputs
149
o = 'test/test_outputs/'
1510
oh = 'test/test_outputs/test_header/'
1611
wcf = 'test/test_wordClouds'
@@ -19,7 +14,6 @@ def test_action():
1914

2015
action(oh,o,wcf, lolf, fpaf)
2116

22-
# Check that the expected files were created
2317
assert os.path.exists(wcf)
2418
assert os.path.exists(lolf)
2519
assert os.path.exists(fpaf)

0 commit comments

Comments
 (0)