Skip to content

Instantly share code, notes, and snippets.

View wisamreid's full-sized avatar

Wisam Reid wisamreid

View GitHub Profile
@wisamreid
wisamreid / bruker_tiff_to_hdf5.py
Created November 8, 2022 18:09 — forked from jzaremba/bruker_tiff_to_hdf5.py
Script to parse Bruker (Prairie) imaging xmls and convert individual TIFF files to a single 5D HDF5.
"""Convert Bruker-generated individual TIFF files to HDF5 stacks"""
import os
from os.path import join, exists
import shutil
import argparse
import re
import fileinput
import sys
from xml.etree import ElementTree
@wisamreid
wisamreid / audio_tools.py
Created March 21, 2022 01:07 — forked from kastnerkyle/audio_tools.py
Audio tools for numpy/python. Constant work in progress.
raise ValueError("DEPRECATED/FROZEN - see https://github.com/kastnerkyle/tools for the latest")
# License: BSD 3-clause
# Authors: Kyle Kastner
# Harvest, Cheaptrick, D4C, WORLD routines based on MATLAB code from M. Morise
# http://ml.cs.yamanashi.ac.jp/world/english/
# MGC code based on r9y9 (Ryuichi Yamamoto) MelGeneralizedCepstrums.jl
# Pieces also adapted from SPTK
from __future__ import division
import numpy as np
@wisamreid
wisamreid / kaggle2colab.py
Created March 9, 2022 08:04 — forked from hasibzunair/kaggle2colab.py
My references for colab commands.
# get API key from kaggle
# open github nb with colab
# https://colab.research.google.com/github/
!pip install -U -q kaggle
!mkdir -p ~/.kaggle