Skip to content

Instantly share code, notes, and snippets.

@rknLA
Last active October 12, 2015 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rknLA/2c3babdd00e23186f532 to your computer and use it in GitHub Desktop.
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

BioGeek commented Oct 12, 2015

indexed_distances is missing the items()method.

@rknLA
Copy link
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