...
 
Commits (2)
......@@ -513,7 +513,10 @@ class Analyser(object):
# find bursts
#unique_words_tmp = filter(filter_func, self.uniqueWords)
d = data.groupby(['_year', '_month'])['_words'].count()
try:
d = data.groupby(['_year', '_month'])['_words'].count()
except KeyError:
logger.error(f"Key error _words in data {data}")
# create a dataframe to hold results
#all_bursts = pd.DataFrame(columns=['begin', 'end', 'weight'])
......
......@@ -38,7 +38,7 @@ def transform(in_f,out_f,mode="txt"):
# return
if mode == "html":
cmd = f"{PDFTOTEXT} -bbox-layout {in_f} {out_f}"
cmd = f"{PDFTOTEXT} -bbox-layout {in_f} {out_f}"
else:
cmd = f"{PDFTOTEXT} {in_f} {out_f}"
......