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
from inspect import getframeinfo, stack | |
def DEBUG_MESSAGE(debug_message): | |
caller = getframeinfo(stack()[1][0]) | |
print("DEBUG " + caller.filename + ":" + str(caller.lineno) + " >>> " + debug_message) | |
DEBUG_MESSAGE ("Begin") | |
DEBUG_MESSAGE("call_value is "+str(5)) | |
DEBUG_MESSAGE ("End") |
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 scipy.io | |
import pandas as pd | |
mat = scipy.io.loadmat('path_to_/fiename.mat') | |
mat = {k:v for k, v in mat.items() if k[0] != '_'} | |
data = pd.DataFrame({k: pd.Series(v[0]) for k, v in mat.iteritems()}) | |
data.to_csv("fiename.csv") |
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
#!/bin/bash | |
set -e | |
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
echo "-----------------------------------" | |
echo "installing apt-get dependencies ..." | |
echo "-----------------------------------" |
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
#!/bin/bash | |
set -e | |
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
echo "------------------------" | |
echo "Building up Boost ..." | |
echo "------------------------" | |
cd ${script_dir} |