Skip to content

Instantly share code, notes, and snippets.

mic micviklui

View GitHub Profile
micviklui /
Created May 24, 2018
run executables in subprocesses in temporary directory
# requires ls/a.file in the root directory
import os
import subprocess
import shutil
import tempfile
import pytest
def mk_cd_tempdir(path, suffix=''):
cur_dir = os.path.abspath(os.path.curdir)
test_dir = tempfile.mkdtemp(suffix=suffix)
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import time
import logging
import threading
micviklui / grid_interpolate
Created Jan 22, 2015
interpolate 2D-grid with splines
View grid_interpolate
xy_in2 = np.array([
np.linspace(-1.5, 1.5, 11),
np.linspace(1, 1, 11)
print xy_in2.shape
def _grid_interpolate_additional(xy, xydev, xy_in):
"""Interpolate values for xy and xydev on points of xy_in.
Values of xy_in that are outside of xy result in 0.
View groupby
"metadata": {
"name": "",
"signature": "sha256:836445cd939079783ca00f23e0eec88e6e83323c0a7c41d2d665e9fb84653099"
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
"cells": [
You can’t perform that action at this time.