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 | |
def voronoi(nx, ny, dh, xp, yp, val, xrng, yrng): | |
""" | |
Simple Voronoi 2D interpolation. | |
:param n1: number of points in the first dimension of the output model | |
:param n2: number of points in the second dimension of the output model | |
:param dh: spatial sampling | |
:param xp: x-coordinates of points to interpolate |
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 heapq as hq | |
import numpy as np | |
import numpy.ma as ma | |
class Eikonal: | |
""" | |
Eikonal solver. | |
References | |
---------- |
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/python | |
def chartable(): | |
""" | |
Define universe, i.e the character table available for encryption and decryption | |
""" | |
universe = " " # space character | |
universe += "0123456789" # numbers | |
universe += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" # letters | |
universe += "!#$%&'()*+,-./:;<=>?@[\]^_`{|}" # special characters |
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
--- | |
- name: 'Install Grafana dependencies' | |
apt: | |
name: | |
- apt-transport-https | |
- ca-certificates | |
- curl | |
- software-properties-common | |
- gnupg2 | |
state: 'present' |
NewerOlder