Skip to content

Instantly share code, notes, and snippets.

@ninjakx
Last active July 26, 2019 05:06
Show Gist options
  • Save ninjakx/9bd151b9113f67e69194345e39212be3 to your computer and use it in GitHub Desktop.
Save ninjakx/9bd151b9113f67e69194345e39212be3 to your computer and use it in GitHub Desktop.
from simulation import nearest_ngbr_raw
arr = np.random.rand(1000,800)
%lprun -T sim_result -f nearest_ngbr_raw nearest_ngbr_raw(arr)
print(open('sim_result', 'r').read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment