forked from readbeyond/aeneas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alberto Pettarin
committed
Oct 21, 2015
1 parent
9ff1430
commit 2f0b1a9
Showing
97 changed files
with
1,468 additions
and
811 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ tmp | |
# service scripts | ||
zzz_*.py | ||
zzz_*.sh | ||
zzz_long_tests | ||
|
||
# Eclipse/PyDev | ||
.project | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.0 | ||
1.3.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ __copyright__ = """ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
@@ -38,7 +38,7 @@ | |
|
||
setup( | ||
name="cdtw", | ||
version="1.3.0", | ||
version="1.3.1", | ||
description=""" | ||
Python C Extension for computing the DTW as fast as your bare metal allows. | ||
""", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ __copyright__ = """ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
@@ -36,7 +36,7 @@ | |
|
||
setup( | ||
name="cew", | ||
version="1.3.0", | ||
version="1.3.1", | ||
description=""" | ||
Python C Extension for synthesizing text with espeak. | ||
""", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ __copyright__ = """ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
@@ -38,7 +38,7 @@ | |
|
||
setup( | ||
name="cmfcc", | ||
version="1.3.0", | ||
version="1.3.1", | ||
description=""" | ||
Python C Extension for computing the MFCCs as fast as your bare metal allows. | ||
""", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
@@ -671,16 +671,46 @@ def delete_file(handler, path): | |
except: | ||
pass | ||
|
||
def get_rel_path(path): | ||
def get_rel_path(path, from_path=None, absolute=False): | ||
""" | ||
Get path relative to the CWD | ||
Get a path relative to the CWD or ``from_path``. | ||
:param path: the file path | ||
:type path: string (path) | ||
:param from_path: the current directory; if None, use CWD | ||
:type from_path: string (path) | ||
:param absolute: if True, output an absolute path | ||
:type absolute: bool | ||
:rtype: string (path) | ||
""" | ||
current_directory = os.path.dirname(os.path.realpath(sys.argv[0])) | ||
if path is None: | ||
return None | ||
if from_path is None: | ||
current_directory = os.path.dirname(os.path.realpath(sys.argv[0])) | ||
else: | ||
current_directory = from_path | ||
target = os.path.join(current_directory, path) | ||
return os.path.relpath(target) | ||
rel_path = os.path.relpath(target) | ||
if absolute: | ||
return os.path.abspath(rel_path) | ||
else: | ||
return rel_path | ||
|
||
def get_abs_path(path, from_file): | ||
""" | ||
Get a path relative to the parent directory of ``from_file``, | ||
and return it as an absolute path. | ||
This method is intented to be called with ``__file__`` | ||
as second argument. | ||
:param path: the file path | ||
:type path: string (path) | ||
:param from_file: the reference file | ||
:type from_file: string (path) | ||
:rtype: string (path) | ||
""" | ||
return get_rel_path(path, os.path.dirname(from_file), True) | ||
|
||
def human_readable_number(number, suffix=""): | ||
""" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
Oops, something went wrong.