Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Fix broken write_output method. #3 #4

Merged
merged 1 commit into from Apr 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions au_notebook.py
Expand Up @@ -299,10 +299,10 @@ def write_output(self, stdout, results):
:return: None.
"""
try:
with open(filename, "w") as output:
with open(stdout, "w") as output:
for value in results:
output_file_write(str(value))
except:
output.write(str(value))
except Exception as exp:
print("Error writing the file.")

def sentiment_scores(self, by="domain"):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -9,7 +9,7 @@

setup(
name='au_notebook',
version='0.0.2',
version='0.0.3',
url='https://github.com/archivesunleashed/au_notebook',
install_requires=['matplotlib', 'networkx', 'nltk', 'numpy', 'pandas'],
author='Ryan Deschamps, Nick Ruest',
Expand Down