Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated spearframerelationship implementation #27

Merged
merged 3 commits into from
Feb 21, 2017
Merged

Conversation

nathantfrank
Copy link
Contributor

No description provided.

def __should_generate_new_frame(self, x_vals, y_vals):

# Make sure their equal in length before going further
if len(x_vals) != len(y_vals):
if len(x_vals) != len(y_vals) and len(x_vals) < 3 or len(y_vals) < 3:
Copy link
Owner

Choose a reason for hiding this comment

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

I think it should actually be

len(x_vals) != len(y_vals) or len(x_vals) < 3

shouldn't generate whenever the list are unequal, or when one of the items is less than 3.
If their both equal then it doens't matter which one we check of it's length for 3

@EliCDavis EliCDavis merged commit 4d231a6 into master Feb 21, 2017
@nathantfrank nathantfrank deleted the feature/spearframe branch March 24, 2017 20:50
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.

None yet

2 participants