Skip to content

Instantly share code, notes, and snippets.

@gravitino
Last active April 20, 2021 19:08
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 gravitino/c61d4094691eb7cc905da4087c928d80 to your computer and use it in GitHub Desktop.
Save gravitino/c61d4094691eb7cc905da4087c928d80 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"# This ensures to use the source code if not installed as Python package\n",
"try:\n",
" import rapidAligner\n",
"except:\n",
" import os, sys\n",
" sys.path.append(os.path.join(os.getcwd(),\"..\"))"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import rapidAligner as ra\n",
"import cupy as cp\n",
"import numpy as np\n",
"import pylab as pl"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment