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
def lin_tri_interpolator( | |
vertices: np.ndarray, triangles: np.ndarray, values: np.ndarray, targets: np.ndarray | |
) -> np.ndarray: | |
""" | |
Interpolate values defined at the vertices of triangles | |
onto arbitrary points projected to the closest triangle they | |
are contained in. | |
Parameters | |
---------- |
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 sys | |
import re | |
import subprocess | |
from tqdm import tqdm | |
# byte representations of PDF constants | |
B_STREAM = bytes("stream", "ansi") | |
B_ENDSTREAM = bytes("endstream", "ansi") | |
B_JBIGGLOBALS = bytes("/JBIG2Globals", "ansi") | |
B_NEWLINE = bytes("\n", "ansi") |
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"foreground": "#b07aa1", | |
"style": "plain", | |
"template": "{{ if .Error }}!{{ .Error }}! {{ else }}{{ if .Venv }}({{ .Venv }}) {{ else }}({{ .Full }}) {{ end }}{{ end }}", |
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
""" | |
Simple functions to interact with the Matlab files provided by the SRCMOD database. | |
""" | |
import numpy as np | |
from scipy.io import loadmat | |
# function copied from | |
# https://github.com/thearagon/srcmod2cmt/blob/f1d701f0927c2a5d923c2a36eb5dd8c56cc85281/cmtsol.py |