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 | |
# A test of whether Ruffus can be used to submit jobs to a cluster using the | |
# DRMAA API, sharing the DRMAA session between threads to allow multiple jobs to | |
# be submitted at once without burdening the head node with multiple DRMAA | |
# sessions. | |
# Can run this from a conda environnment created using | |
# conda create -n drmaatest -c bioconda python=2.7 ruffus drmaa |
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 numpy as np | |
myriad_codes = np.array(( | |
None, None, None, None, "HP", None, None, | |
None, None, None, "HT", "HU", None, None, | |
None, "HW", "HX", "HY", "HZ", None, None, | |
"NA", "NB", "NC", "ND", None, None, None, | |
"NF", "NG", "NH", "NJ", "NK", None, None, | |
"NL", "NM", "NN", "NO", None, None, None, | |
None, "NR", "NS", "NT", "NU", None, None, |
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
--- BibTeX.js.orig 2015-07-03 07:18:37.000000000 +0100 | |
+++ BibTeX.js 2015-08-09 14:21:08.779706944 +0100 | |
@@ -1176,7 +1176,11 @@ | |
if(!type) type = "misc"; | |
// create a unique citation key | |
- var citekey = buildCiteKey(item, citekeys); | |
+ if (item.shortTitle==''){ | |
+ var citekey = buildCiteKey(item, citekeys); | |
+ } else { |
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
function tau_a = shear_stress(D, Q, k_s, T, den) | |
%{ Hydraulic shear stress at pipe wall (in Pa). | |
% | |
% Params: | |
% D -- internal diameter (m) | |
% Q -- flow (m^3s^-1) | |
% k_s -- roughness height (m) | |
% T -- temperature; defaults to 10degC) | |
% den -- density defaults to 1000kg/m^3 | |
% |
NewerOlder