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
In [33]: import sherpa.astro.ui as ui | |
--------------------------------------------------------------------------- | |
ImportError Traceback (most recent call last) | |
/disk/caleuche_1/trive/Arbejde/LARS-COS/<ipython console> in <module>() | |
/home/trive/Softwarebuild/python_packages/lib/python2.6/site-packages/sherpa/astro/ui/__init__.py in <module>() | |
19 | |
20 import sherpa.all | |
---> 21 import sherpa.astro.all |
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
" Alt+j/k scrolls text up/down while | |
" keeping the cursor in center line. | |
nnoremap <A-j> jzz | |
nnoremap <A-k> kzz |
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
\begin{description} | |
\item[Item1]{Something I feel like telling about} | |
\item[Item1]{Something else I also feel like telling about} | |
%... Many items go here | |
\end{description} |
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
" Vim color file | |
" Converted from Textmate theme Twilight using Coloration v0.3.2 (http://github.com/sickill/coloration) | |
" Tweaked to change folding colors, search and incsearch highlight and better Tructure / Special colors | |
" (That is, closer to the original) | |
set background=dark | |
highlight clear | |
if exists("syntax_on") | |
syntax reset |
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
# Use Xft? | |
use_xft yes | |
xftfont DejaVu Sans:size=8 | |
xftalpha 0.6 | |
text_buffer_size 2048 | |
# Update interval in seconds | |
update_interval 1 | |
# This is the number of times Conky will update before quitting. |
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
def fill_between_steps(x, y1, y2=0, h_align='mid', ax=None, **kwargs): | |
''' Fills a hole in matplotlib: fill_between for step plots. | |
Parameters : | |
------------ | |
x : array-like | |
Array/vector of index values. These are assumed to be equally-spaced. | |
If not, the result will probably look weird... | |
y1 : array-like |
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
CB_color_cycle = ['#377eb8', '#ff7f00', '#4daf4a', | |
'#f781bf', '#a65628', '#984ea3', | |
'#999999', '#e41a1c', '#dede00'] |
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 scipy.interpolate import InterpolatedUnivariateSpline as spline | |
class ErrorPropagationSpline(object): | |
""" | |
Does a spline fit, but returns both the spline value and associated uncertainty. | |
""" | |
def __init__(self, x, y, yerr, N=1000, *args, **kwargs): | |
""" | |
See docstring for InterpolatedUnivariateSpline |
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 | |
# encoding: utf-8 | |
# Copyright 2013, 2016 T. Emil Rivera-Thorsen | |
# [email protected] | |
''' To run: python vp-interactive-py | |
''' | |
import scipy as sp | |
import scipy.constants as con |
OlderNewer