Skip to content

Instantly share code, notes, and snippets.

View matthewfeickert's full-sized avatar

Matthew Feickert matthewfeickert

View GitHub Profile
@matthewfeickert
matthewfeickert / .gitignore
Last active December 22, 2020 06:59
Multi parameter example
.vscode/
@matthewfeickert
matthewfeickert / Dockerfile
Last active January 8, 2021 23:37
matplotlib font question on Stack Overflow
FROM ubuntu:20.04
RUN apt-get update -y && \
apt-get install -y \
fontconfig \
fonts-dejavu \
fonts-freefont-ttf \
python3 \
python3-dev \
python3-pip \
@matthewfeickert
matthewfeickert / Dockerfile
Last active January 11, 2021 04:49
matplotlib cursive fonts Stack Overflow question
FROM ubuntu:20.04
RUN apt-get update -y && \
apt-get install -y \
fontconfig \
fonts-dejavu \
fonts-freefont-ttf \
python3 \
python3-dev \
python3-pip \
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@matthewfeickert
matthewfeickert / README.md
Last active January 13, 2021 00:24
reproducible issue with jaxlib v0.1.58

Regression in jaxlib v0.1.58 for jax.scipy.special.gammaln for CPU

In pyhf we've noticed one of our unit tests that was passing for jax v0.2.7 and jaxlib v0.1.57, however, with the release of jaxlib v0.1.58 it has started failing. We've narrowed it down to being for jaxlib v0.1.58 with jax_enable_x64=True in CPU mode (aka, where our unit test run).

Minimal Reproducible Example

In a fresh Python 3.8 virtual environment

@matthewfeickert
matthewfeickert / README.md
Last active March 22, 2021 16:10
Bug report for Python 2 vs. Python 3 inconsistency

I'm seeing a bug between pyAMI v5.1.2 on CVMFS with inconsistent return structure for the provenance node dicts. The docs mention that for the pyAMI.atlas.api.get_dataset_prov API the return should be

a map of python dictionnaries. The key "node" gives a list of dataset with the distance to the given dataset and the key "edge" gives the list of successive pairs of input an output datasets.

This is true for Python 2.7, but for Python 3 the return structure is inconsistent with some datasets in the provenance node list having a return of

@matthewfeickert
matthewfeickert / docs.yml
Created March 5, 2021 23:26
GitHub Actions workflow YAML to deploy a built document to a gh-pages branch for viewing through the web
name: Deploy build
on:
push:
branches:
- main
tags:
- v*
jobs:
@matthewfeickert
matthewfeickert / .gitignore
Last active March 15, 2021 20:47
demo of failing example of hist with np.sqrt
.ipynb_checkpoints/
example.root
@matthewfeickert
matthewfeickert / README.md
Last active March 23, 2021 04:29 — forked from lehostert/README.md
stacked bar plots

Stacked Bar Plot Example

Binder

Summary

This is an example of how to create a stacked bar plot with percent family from a fish data set. Using this example you will be able to take a full data set and compute the family proportions just before plotting without the need to save a new dataframe.

Dependencies

@matthewfeickert
matthewfeickert / .gitignore
Last active March 24, 2021 20:50
Example of problems with versioning and cell ID in Jupyter notebooks
.ipynb_checkpoints/