Skip to content

Sourcery Starbot ⭐ refactored migai/NEU_AI_2018#2

Open
SourceryAI wants to merge 1 commit into
migai:masterfrom
SourceryAI:master
Open

Sourcery Starbot ⭐ refactored migai/NEU_AI_2018#2
SourceryAI wants to merge 1 commit into
migai:masterfrom
SourceryAI:master

Conversation

@SourceryAI

Copy link
Copy Markdown

Thanks for starring sourcery-ai/sourcery ✨ 🌟 ✨

Here's your pull request refactoring your most popular Python repo.

If you want Sourcery to refactor all your Python repos and incoming pull requests install our bot.

Review changes via command line

To manually merge these changes, make sure you're on the master branch, then run:

git fetch https://github.com/sourcery-ai-bot/NEU_AI_2018 master
git merge --ff-only FETCH_HEAD
git reset HEAD^

Comment on lines -62 to +63
node_dict = {key:val for key,val in enumerate(network_nodes)}
node_dict = dict(enumerate(network_nodes))

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function make_network refactored with the following changes:

if abs(pr_new[n] - pr_old[n]) > tolerance:
return False
return True
return all(abs(pr_new[n] - pr_old[n]) <= tolerance for n in pr_old)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function within_tolerance refactored with the following changes:

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.

1 participant