This file contains hidden or 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 numpy as np | |
from dragons import meraxes | |
fname = "/lustre/projects/p021_astro/smutch/meraxes/tiamat/paper_runs/uvb/output/meraxes.hdf5" | |
# grab the snapshot list | |
snaplist, _, _ = meraxes.read_snaplist(fname) | |
# read all of the global_xH values | |
global_xH = meraxes.read_global_xH(fname, snaplist, quiet=True) |
This file contains hidden or 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 | |
"""Calculate the Sobacchi & Mesinger global model parameters from a run. | |
Usage: sobacchi_params_from_run.py <fname> | |
""" | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from dragons import meraxes |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
[alias] | |
lg = log --graph --format='%Cred%h%Creset %C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
standup = log --since '1 day ago' --oneline --author 'YOUR_EMAIL_HERE' | |
standup-week = log --since '7 day ago' --oneline --author 'YOUR_EMAIL_HERE' | |
latest = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short) [%(committername)]' | |
b = branch | |
ba = branch -a | |
d = !git diff | view - |
This file contains hidden or 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
config defaultToCurrentScreen true | |
config windowHintsShowIcons true | |
config windowHintsIgnoreHiddenWindows false | |
config windowHintsSpread true | |
# Monitor Aliases | |
alias mon-laptop 1440x900 | |
alias mon-thunderbolt 2560x1440 | |
alias mon-dell 1920x1080 |
This file contains hidden or 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 numpy as np | |
class Bootstrap(): | |
def __init__(self, arr, n, statistic=np.mean): | |
self.ii = 0 | |
self.n = n | |
self.arr = np.array(arr).squeeze() | |
self.statistic = statistic | |
def __iter__(self): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
<!-- Place these cells at the head of the notebook (N.B. there are cells below which go at the end though)--> | |
<script> | |
jQuery(document).ready(function($) { | |
$(window).load(function(){ | |
$('#preloader').fadeOut('slow',function(){$(this).remove();}); | |
}); | |
}); | |
</script> |