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
! -*- f90 -*- | |
! f2py wrapper for interpolating tensioned splines | |
! This file was auto-generated with f2py (version:2). | |
! See http://cens.ioc.ee/projects/f2py2e/ | |
! Modified by Gary Ruben 2012-09-03 | |
! This wraps the curv1() and curv2() functions in Alan K Cline's fitpack http://www.netlib.org/fitpack | |
! Also requires the fitpack functions ceez(), intrvl(), snhcsh(), and terms(). | |
! fitpack.f contains both high and low precision versions of snhcsh(). I used the higher precision version. | |
! The low precision version in fitpack.f must be commented out prior to running f2py as follows to create the wrapper: | |
! f2py -c fitpack.pyf fitpack.f |
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer