This file contains 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 | |
from mpl_toolkits.axes_grid1 import Divider, Size | |
import numpy as np | |
from scipy import stats | |
import galsim | |
import dsps | |
from dsps.data_loaders import load_ssp_templates | |
from lsstdesc_diffsky import read_diffskypop_params |
This file contains 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 conda_package_handling import api as cph_api | |
from tempfile import TemporaryDirectory | |
import pathlib | |
import os | |
import subprocess | |
import shutil | |
import json | |
import requests | |
import tarfile |
This file contains 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
#!/bin/bash | |
pkg=$1 | |
# Get the current versions of a package's installed dependencies | |
# get dist_name for the package so we can find it's json file | |
pkg_dist_name=$(conda list --json | jq -r '.[] | select(.name=="'${pkg}'") | .dist_name') | |
# get dependencies in the form of a regex | |
name_regex=$(jq -r '.depends | map(. | split(" ")[0]) | join("$|")' ${CONDA_PREFIX}/conda-meta/${pkg_dist_name}.json) | |
# print list of dependency=version for installed dependencies | |
conda list --json | jq -r '.[] | select(.name | match("'${name_regex}'")) | "\(.name)=\(.version)"' |
List of oldest supported version of top 10 Linux Distros and their glibc version according to distrowatch.com.
Out of all versions with published EOLs, 2.12 is the oldest glibc still active, found in CentOS 6.8.
If CentOS 6 and 7 are eliminated, the oldest glibc is 2.23 in Ubuntu and Slackware.
This file contains 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
#! /usr/bin/env python | |
import glob | |
import os | |
import shutil | |
import re | |
from collections import namedtuple | |
import subprocess | |
from subprocess import PIPE |
This file contains 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
#lines | |
lines.linewidth : 1.0 | |
lines.linestyle : - | |
lines.color : black | |
#fonts & text | |
font.family : serif | |
font.weight : normal | |
font.size : 12.0 | |
text.color : black |