Texas A&M, MEEN 431, Dynamic Systems and Controls, Project Sam Friedman, Nilesh Pore
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
[ | |
"Afghanistan", | |
"Albania", | |
"Algeria", | |
"American Samoa", | |
"Andorra", | |
"Angola", | |
"Anguilla", | |
"Antarctica", | |
"Antigua and Barbuda", |
TAMU HPRC Python virtual environment setup: https://hprc.tamu.edu/wiki/SW:Python
On the Ada cluster, run these commands one after the other. They probably also work on the Terra and Curie clusters.
module load Python/2.7.12-foss-2017A myPython/2.7.12-foss-2017A
$MYCREATEVIRTENV
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
# Inference Statistics | |
# Casella and Berger |
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
# add to ~/.gitconfig file | |
# By Slipp D. Thompson, at http://stackoverflow.com/questions/1838873/visualizing-branch-topology-in-git/34467298#34467298 | |
[alias] | |
lg = !"git lg1" | |
lg1 = !"git lg1-specific --all" | |
lg2 = !"git lg2-specific --all" | |
lg3 = !"git lg3-specific --all" | |
lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' | |
lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' |
Modules/Commands to install
use pip install <module> --user
to install to user account without root privileges
- Cython
- numpy
- scipy
- openmdao
- cprofilev
- line_profiler
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 npary = mat2np(mat) | |
% convert matlab matrix to python (Numpy) ndarray | |
sh = fliplr(size(mat)); | |
mat2 = reshape(mat,1,numel(mat)); % [1, n] vector | |
npary = py.numpy.array(mat2); | |
npary = npary.reshape(sh).transpose(); % python ndarray | |
end |
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 mat = np2mat(npary) | |
% convert python (Numpy) ndarray to matlab | |
sh = double(py.array.array('d',npary.shape)); | |
npary2 = double(py.array.array('d',py.numpy.nditer(npary))); | |
mat = reshape(npary2,fliplr(sh))'; % matlab 2d array | |
end |