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
class MouseEvent(Event): | |
""" Class describing mouse events. | |
Input arguments | |
--------------- | |
source : object | |
The visualization object that this event is created from or applies to. | |
type : str | |
string indicating the event type (e.g. mouse_press, key_release) | |
kwds : keyword arguments |
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 skimage.measure | |
import skimage.morphology | |
import visvis as vv | |
from visvis.utils import iso | |
import numpy as np | |
def ball(radius, dtype=np.uint8): | |
# New from skimage.morphology |
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
from skimage.graph.heap import BinaryHeap as BinaryHeap_sk | |
import time | |
VALUE_T = nb.float64 | |
REFERENCE_T = nb.int32 | |
@nb.jit # jit is slightly faster, compile time for autojit is ~2s | |
class BinaryHeap: | |
@nb.void(nb.int32) |
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 python3 | |
""" | |
Functionality for cleaning up your git repository. | |
This uses commands found on: | |
https://help.github.com/articles/remove-sensitive-data | |
""" | |
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
class PointSet(np.ndarray): | |
""" The PointSet class can be used to represent sets of points or | |
vectors, as well as singleton points. The dimensionality of the | |
vectors in the pointset can be anything, and the dtype can be any | |
of those supported by numpy. | |
This class inherits from np.ndarray, which makes it very flexible; | |
you can threat it as a regular array, and also pass it to functions | |
that require a numpy array. The shape of the array is NxD, with N | |
the number of points, and D the dimensionality of each point. |
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
class Image(np.ndarray): | |
def __new__(cls, array): | |
return array.view(cls) | |
def __repr__(self): | |
n = 'x'.join([str(i) for i in self.shape]) | |
dtype = self.dtype | |
ndim = self.ndim | |
if self.shape[-1] in (1,3,4): |
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
# -*- coding: utf-8 -*- | |
# ----------------------------------------------------------------------------- | |
# Copyright (c) 2014, Vispy Development Team. All Rights Reserved. | |
# Distributed under the (new) BSD License. See LICENSE.txt for more info. | |
# ----------------------------------------------------------------------------- | |
from __future__ import print_function | |
import sys | |
import ctypes |
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
# -*- coding: utf-8 -*- | |
# Copyright (c) 2014, Vispy Development Team. | |
# Distributed under the (new) BSD License. See LICENSE.txt for more info. | |
""" | |
vispy backend for Qt (PySide and PyQt4). | |
""" | |
from __future__ import division |
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 itertools | |
import os | |
import hashlib | |
import numpy as np | |
import vispy | |
from vispy import app | |
from vispy import scene | |
from vispy import gloo |
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
c:\Anaconda34>Scripts\conda-build c:\almar\devel\conda-recipes\freeimage | |
Removing old build environment | |
Removing old work directory | |
BUILD START: freeimage-3.17.0-vc10_1 | |
Fetching package metadata: ...... | |
Solving package specifications: ......... | |
The following NEW packages will be INSTALLED: | |
pip: 7.1.2-py34_0 | |
python: 3.4.3-0 |
OlderNewer