This file has been truncated, but you can view the full file.
This file contains 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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:c94d0761ba047cfd77267c1d2e8b1d694c8fb3c18b19f8007e5c90777da3bfd5" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 | |
def rebin(a, new_shape): | |
""" | |
Resizes a 2d array by averaging or repeating elements, | |
new dimensions must be integral factors of original dimensions | |
Parameters | |
---------- | |
a : array_like |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 os | |
#from traits.etsconfig.api import ETSConfig | |
#ETSConfig.toolkit = 'qt4' | |
import numpy as np | |
from enable.api import ComponentEditor | |
from traits.api import Str, Bool, Enum, List, Dict, Any, \ | |
HasTraits, Instance, Button, on_trait_change | |
from traitsui.api import View, Group, HGroup, VGroup, HSplit, \ | |
Item, UItem, TreeEditor, TreeNode, TreeNodeObject, Menu | |
from traitsui.key_bindings import KeyBinding, KeyBindings |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 | |
""" | |
Demonstrates use of the FunctionImageData that depends on an external range | |
and returns different data depending on that range. | |
""" | |
# Major library imports | |
from numpy import pi, linspace, meshgrid, sin | |
# Enthought library imports |