Skip to content

Instantly share code, notes, and snippets.

@rknLA
Last active October 12, 2015 21:03
Show Gist options
  • Select an option

  • Save rknLA/2c3babdd00e23186f532 to your computer and use it in GitHub Desktop.

Select an option

Save rknLA/2c3babdd00e23186f532 to your computer and use it in GitHub Desktop.
questionable_indices = [ ix \
for ix, val in indexed_distances.iteritems() \
if int(round(val * 60)) != 1 ]
@BioGeek
Copy link
Copy Markdown

BioGeek commented Oct 12, 2015

indexed_distances is missing the items()method.

@rknLA
Copy link
Copy Markdown
Author

rknLA commented Oct 12, 2015

@BioGeek yep, just caught that. and the equality check was inverted.. Updated to fix.

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