This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
import numpy as np | |
from scipy import constants, optimize | |
import matplotlib.pyplot as plt | |
plt.rcParams.update({'figure.autolayout': True}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import dash | |
from dash.dependencies import Input, Output, State | |
import dash_html_components as html | |
import dash_core_components as dcc | |
from skimage import io, transform, filters, segmentation | |
from skimage import img_as_ubyte | |
from scipy import ndimage | |
import plotly.express as px |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from github import Github | |
import datetime | |
def print_list(l, title=None): | |
"""From list of PullRequest of Issue objects, | |
print their number and title. | |
""" | |
print(f'## {title}\n') | |
if not l: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def canny(image, sigma=1., low_threshold=None, high_threshold=None, mask=None, | |
use_quantiles=False): | |
"""Edge filter an image using the Canny algorithm. | |
Parameters | |
----------- | |
image : 2D array | |
Grayscale input image to detect edges on; can be of any dtype. | |
sigma : float, optional | |
Standard deviation of the Gaussian filter. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import imageio | |
print('imageio version ', imageio.__version__) | |
import cv2 | |
print('cv2 version ', cv2.__version__) | |
import skimage | |
print('skimage version ', skimage.__version__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import imageio | |
print('imageio version ', imageio.__version__) | |
import cv2 | |
print('cv2 version ', cv2.__version__) | |
import skimage | |
print('skimage version ', skimage.__version__) | |
from skimage import data |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pip install scipy --no-cache-dir -vv | |
[33mYou are using pip version 7.0.0, however version 8.0.2 is available. | |
You should consider upgrading via the 'pip install --upgrade pip' command.[0m | |
Collecting scipy | |
Getting page https://pypi.python.org/simple/scipy/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pew mktmpenv | |
Using base prefix '/usr' | |
New python executable in /home/fr/.local/share/virtualenvs/ae24edb11eebdba/bin/python3 | |
Also creating executable in /home/fr/.local/share/virtualenvs/ae24edb11eebdba/bin/python | |
Installing setuptools, pip, wheel...pip install pip==7.done. | |
This is a temporary environment. It will be deleted when you exit | |
0.0Launching subshell in virtual environment. Type 'exit' or 'Ctrl+D' to return. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[fr:~] % pew mktmpenv | |
Using base prefix '/usr' | |
New python executable in /home/fr/.local/share/virtualenvs/576dc9ecac1d233/bin/python3 | |
Also creating executable in /home/fr/.local/share/virtualenvs/576dc9ecac1d233/bin/python | |
Installing setuptools, pip, wheel...done. | |
This is a temporary environment. It will be deleted when you exit | |
Launching subshell in virtual environment. Type 'exit' or 'Ctrl+D' to return. | |
[fr:~] [576dc9ecac1d233] % pip install numpy==1.10.2 --no-cache-dir -v | |
Collecting numpy==1.10.2 |