Skip to content

Conversation

@manu-chroma
Copy link
Collaborator

  • fixed imports
  • print statements

@manu-chroma
Copy link
Collaborator Author

@nmoya don't approve this yet. This is still WIP.
I'll try to add more tests for the same. Travis is also failing at the moment.

self.proportions["avg_words"][s] = self.proportions["words"][s] / self.proportions["messages"][s]
self.proportions["avg_words"]["ratio"] = self.proportions["avg_words"][root] / self.proportions["avg_words"][contact]
self.proportions["avg_words"]["ratio"] = self.proportions["avg_words"][root] / self.proportions["avg_words"][
contact]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funky line break

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha yeah. pycharm magic 😄

@nmoya
Copy link
Owner

nmoya commented Apr 4, 2017

@manu-chroma so far so good with the changes, let me know when you update.

@manu-chroma manu-chroma force-pushed the master branch 4 times, most recently from 8d0ab0e to 71caeb8 Compare April 6, 2017 18:35
- fixed imports
- print statements
@manu-chroma
Copy link
Collaborator Author

@nmoya Pls review. Python 3.x tests are still not passing, but I've made a bunch of improvements to the codebase.

Also, rewritten the test file.

args = "-f test/testChat2.txt --root Username{}".format(case).split()

with captured_output() as (result, err):
parser(args)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rather than using os.system, better approach is to import the main package and pass args directly to it.

@nmoya
Copy link
Owner

nmoya commented Apr 10, 2017

@manu-chroma Sorry for the delay, nice work. Can you remove the *.bak files from the PR? Other than that, LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants