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 coinc_2(Ch1_TIME, Ch2_TIME, Ch1_AMPL, Ch2_AMPL, t_window): | |
Ch1_TIME = np.asarray(Ch1_TIME) | |
Ch2_TIME = np.asarray(Ch2_TIME) | |
Ch1_AMPL = np.asarray(Ch1_AMPL) | |
Ch2_AMPL = np.asarray(Ch2_AMPL) | |
# For each Ch1 time, find window in Ch2 where match is possible |
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 pyvista as pv | |
import numpy as np | |
import ufl | |
import basix | |
from dolfinx.mesh import create_mesh | |
from mpi4py import MPI | |
import dolfinx | |
# Define the points | |
points = [ |
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 | |
import dolfinx | |
import pyvista as pv | |
import basix | |
import ufl | |
from dolfinx.mesh import create_mesh | |
from mpi4py import MPI | |
xrng = np.arange(0, 20, 5, dtype=np.float32) | |
yrng = np.arange(0, 20, 5, dtype=np.float32) |
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 pycountry_convert as pc | |
import pandas as pd | |
import plotly.express as px | |
from pypalettes import load_cmap | |
import matplotlib.colors as mcolors | |
cmap = load_cmap("blaziken") | |
# read registrations.csv |
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 matplotlib.pyplot as plt | |
import squarify | |
import pandas as pd | |
from pypalettes import load_cmap | |
from highlight_text import fig_text | |
dark_mode = True | |
cmap = load_cmap("Acadia") |
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
from libra_toolbox.tritium.model import Model, ureg | |
import numpy as np | |
baby_diameter = 14 * ureg.cm # TODO confirm with CAD | |
baby_radius = 0.5 * baby_diameter | |
baby_volume = 1 * ureg.L | |
baby_cross_section = np.pi * baby_radius**2 | |
baby_height = baby_volume / baby_cross_section |
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 os | |
import shutil | |
from datetime import datetime | |
from PIL import Image | |
from PIL.ExifTags import TAGS | |
import sys | |
def get_exif_data(image_path: str): | |
image = Image.open(image_path) |