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 subprocess | |
# Short script to get the juicy stuff from "qstat -f" | |
# Note especially that you get the whole Job Name | |
# Add whatever you want in the keys array | |
############################### | |
# Preferences: | |
# Separator to use in the output |
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 scipy.stats import exponweib | |
from scipy.optimize import fmin | |
import numpy as np | |
# x is your data array | |
# returns [shape, scale] | |
def fitweibull(x): | |
def optfun(theta): | |
return -np.sum(np.log(exponweib.pdf(x, 1, theta[0], scale = theta[1], loc = 0))) |