Commit e0544596 authored by Denis Arrivault's avatar Denis Arrivault
Browse files

correct bug #3

parent cfc0a06c
ltfatpy:1.0.5
ltfatpy:1.0.6
ltfat:2.1.0
......@@ -29,6 +29,18 @@ def fileUnStamping(filename):
elif not is_stamp:
print(line, end="")
def fileRemoveSharps(filename):
""" Remove sharps from a file """
removeLine = False
for line in fileinput.input(filename, inplace=1):
if line.startswith("# -*- coding: utf-8 -*-"):
print(line, end="")
removeLine = True
elif removeLine and line.startswith("#"):
pass
else:
removeLine = False
print(line, end="")
def fileStamping(filename, stamp):
""" Write a stamp on a file
......@@ -55,7 +67,7 @@ def getStamp(date, ltfatpy_version, ltfat_version):
stamp = stamp.replace('\n', '\n# ')
stamp = "# " + stamp
stamp = stamp.replace("# \n", "#\n")
return stamp.strip()
return stamp.strip()[:-1]
def getVersionsAndDate():
......@@ -103,6 +115,13 @@ def eraseStamp():
fileUnStamping(filename)
fileUnStamping("setup.py")
def removeSharps():
""" Remove undesirable sharps from all files """
files = findFiles(os.path.join(os.path.dirname(os.path.abspath(__file__)),
"ltfatpy"))
for filename in files:
fileRemoveSharps(filename)
fileRemoveSharps("setup.py")
def usage(arg):
print("Usage :")
......
......@@ -26,7 +26,7 @@ time-frequency analysis and synthesis.
Version
-------
* ltfatpy version = 1.0.5
* ltfatpy version = 1.0.6
* LTFAT version = 2.1.0
Licence
......
......@@ -117,4 +117,4 @@ __all__ = ["arg_firwin", "assert_groworder", "assert_sigreshape_post",
"long2fir", "normalize", "rms", "thresh", "lcm", "postpad"]
__version__ = "1.0.5"
__version__ = "1.0.6"
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
""" Module of FIR window names
Ported from ltfat_2.1.0/comp/arg_firwin.m
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
""" Module of order parameter growing
Ported from ltfat_2.1.0/comp/assert_groworder.m
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
""" Module of original permuted shape restoration
Ported from ltfat_2.1.0/comp/assert_sigreshape_post.m
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
""" Module of dimension input proprocessing and handling
Ported from ltfat_2.1.0/comp/assert_sigreshape_pre.m
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
"""This module contains interface functions for the LTFAT computed
versions of dct calculations.
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
"""This module contains interface functions for the LTFAT computed
versions of dst calculations.
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
"""This module contains interface functions for the LTFAT computed
versions of gabor dual windows calculations.
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
"""This module contains interface functions for the LTFAT computed
versions of tight gabor windows calculation.
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
""" Module of sampling of continuous Hermite function computation
Ported from ltfat_2.1.0/comp/comp_hermite.m
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
""" Module of sampling of all Hermite function computation
Ported from ltfat_2.1.0/comp/comp_hermite_all.m
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
"""This module contains interface functions for the LTFAT computed
versions of isepdgt calculations.
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
"""This module contains interface functions for the LTFAT computed
versions of isepdgtreal calculations.
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
"""This module contains interface functions for the LTFAT computed
versions of periodized Gaussian calculation.
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
"""This module contains interface functions for the LTFAT computed
versions of sepdgt calculations.
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
"""This module contains interface functions for the LTFAT computed
versions of sepdgt calculations.
......
......@@ -28,7 +28,7 @@
# Version
# -------
#
# * ltfatpy version = 1.0.5
# * ltfatpy version = 1.0.6
# * LTFAT version = 2.1.0
#
# Licence
......@@ -48,8 +48,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
#
#
""" Module of comp_sigreshape_post calculation
Ported from ltfat_2.1.0/comp/comp_sigreshape_post.m
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment