From 84d3e81ab4cb43938d67d44b50f3aafdbbadc224 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 14 Jul 2015 09:35:00 -0400 Subject: s/python/python2/ at a few places for prepare.sh compatibility --- data/csv_to_hdf5.py | 2 +- data/init_valid.py | 2 +- data/make_valid_cut.py | 2 +- data_analysis/cluster_arrival.py | 2 +- prepare.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 prepare.sh diff --git a/data/csv_to_hdf5.py b/data/csv_to_hdf5.py index b011b52..1b55e49 100755 --- a/data/csv_to_hdf5.py +++ b/data/csv_to_hdf5.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 import ast import csv diff --git a/data/init_valid.py b/data/init_valid.py index 6694caa..0274c1b 100755 --- a/data/init_valid.py +++ b/data/init_valid.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # Initialize the valid hdf5 import os diff --git a/data/make_valid_cut.py b/data/make_valid_cut.py index cb23329..f986f1d 100755 --- a/data/make_valid_cut.py +++ b/data/make_valid_cut.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # Make a valid dataset by cutting the training set at specified timestamps import os diff --git a/data_analysis/cluster_arrival.py b/data_analysis/cluster_arrival.py index 5e990cd..f23b5c3 100755 --- a/data_analysis/cluster_arrival.py +++ b/data_analysis/cluster_arrival.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 import numpy import cPickle import scipy.misc diff --git a/prepare.sh b/prepare.sh old mode 100644 new mode 100755 index addc3df..8da4731 --- a/prepare.sh +++ b/prepare.sh @@ -23,7 +23,7 @@ echo -e "\n$BLUE# Checking dependencies" python_import(){ echo -n "${YELLOW}$1... $RESET" - if ! python -c "import $1; print '${GREEN}version', $1.__version__, '${YELLOW}(we used version $2)'"; then + if ! python2 -c "import $1; print '${GREEN}version', $1.__version__, '${YELLOW}(we used version $2)'"; then echo "${RED}failed, $1 is not installed" exit 1 fi -- cgit v1.2.3