Skip to content

Instantly share code, notes, and snippets.

View rmnldwg's full-sized avatar
🔬
curing cancer...

Roman Ludwig rmnldwg

🔬
curing cancer...
View GitHub Profile
@rmnldwg
rmnldwg / benchmark.py
Created June 27, 2024 14:32
Performance testing script to debug some weird issues that sometimes occur with the `lymph` package.
"""Test different setting's impact on model's performance."""
import argparse
from pathlib import Path
from typing import Any
import emcee
import numpy as np
from multiprocess import Pool
from scipy.special import factorial
@rmnldwg
rmnldwg / create_h5file.py
Created August 16, 2022 14:26
Python script to create an HDF5 file with attributes that cannot be displayed by the H5Web VS code extension
"""
Python script to reproduce an HDF5 file which has attributes that won't be displayed
in the VS code extension "H5Web".
"""
import numpy as np
import h5py
if __name__ == "__main__":
# create some random data, doesn't really matter