Skip to content

Instantly share code, notes, and snippets.


Maximilian Nöthe MaxNoe

  • TU Dortmund
  • Germany
View GitHub Profile
MaxNoe /
Created Dec 5, 2019
Plot data files from without unpacking the tarball
import tarfile
import pandas as pd
from io import TextIOWrapper
import matplotlib.pyplot as plt
import os
import argparse
parser = argparse.ArgumentParser()
MaxNoe /
Last active May 20, 2019
Plotting a secondary MJD date axis with matplotlib 3.1
import matplotlib.pyplot as plt
import numpy as np
from scipy.constants import k, h, c
from matplotlib.dates import date2num
from astropy.time import Time
import astropy.units as u
MJDREF = date2num(Time(0, format='mjd').datetime)
MaxNoe / header-matplotlib.tex
Last active Aug 17, 2018
Graphic explaining the hillas features in Imaging Air Cherenkov Astronomy
View header-matplotlib.tex
\setmainfont[BoldFont=Akkurat Office]{Akkurat Light Office}
\setsansfont[BoldFont=Akkurat Office]{Akkurat Light Office}
\setmonofont[BoldFont=Fira Code, Scale=MatchLowercase]{Fira Code Light}
MaxNoe /
Last active Jun 21, 2018
Fitting histograms of muon lifetimes. Do not estimate weights from your data!
import numpy as np
from scipy.optimize import curve_fit, minimize
import matplotlib.pyplot as plt
from tqdm import tqdm
from scipy.stats import poisson
MUON_LIFETIME = 2.196_981_1
bins = np.linspace(0.5, 12, 150)
MaxNoe /
Last active Jan 5, 2018
Download html and images from and convert to ebooks
import requests
from bs4 import BeautifulSoup
from argparse import ArgumentParser
import subprocess as sp
import tempfile
import os
from multiprocessing.pool import ThreadPool
import json
import logging
import re
View ADS_Language_Query.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.