This commit is contained in:
Alex38Lyon
2025-08-27 19:11:11 +02:00
parent af1b72f5c4
commit 4e8b86db56
12 changed files with 1028 additions and 430 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ def setup_logger(logfile="app.log", debug_log=False):
file_formatter = FileFormatter("%(asctime)s - %(levelname)s - %(message)s") # <-- Ta classe personnalisée
file_handler.setFormatter(file_formatter)
logger.addHandler(file_handler)
return logger
+1 -1
View File
@@ -12,7 +12,7 @@ error_count = 0 # Compteur d'erreurs
## [Survey_Data] default values
Author = "Created by pyCreateTh.py"
Copyright = "# Copyright(C) pyCreateTh.py"
CopyrightShort = "Licence(C) pyCreateTh.py"
CopyrightShort = "License(C) pyCreateTh.py"
mapComment = "Created by pyCreateTh.py"
cs = "UTM30"
club = "Therion"
@@ -131,7 +131,7 @@ def writethconfig(pdata, icomments, icoupe, thlang, dictcave,
f2w.write(u'encoding utf-8 \n\n')
f2w.write(u'# File written by pytro2th (Xavier Robert) \n')
f2w.write(u'# Copyright (C) %s Xavier Robert <xavier.robert***@***ird.fr> \n' %(str(datetime.datetime.now().year)))
f2w.write(u'# This work is under the licence Creatice Commonc CC-by-nc-sa v.4 \n\n')
f2w.write(u'# This work is under the License Creatice Commonc CC-by-nc-sa v.4 \n\n')
if icomments:
@@ -561,7 +561,7 @@ def writethc(pdata, cavename = None, istructure = True):
Author: Xavier Robert, Lima 2016/06/27
Licence: CCby-nc
License: CCby-nc
"""
# Open the file
@@ -331,7 +331,7 @@ def write_thtot(file, cavename = u'cave', icomments = True, thlang = 'en'):
if icomments:
if thlang == u'fr':
file.write(u'# Copyright (C) %s Xavier Robert <xavier.robert***@***ird.fr>\n' %(str(datetime.datetime.now().year)))
file.write(u'# Ce travaille est sous la licence Creative Commons Attribution-ShareAlike-NonCommecial :\n')
file.write(u'# Ce travaille est sous la License Creative Commons Attribution-ShareAlike-NonCommecial :\n')
file.write(u'# <http://creativecommons.org/licenses/by-nc-sa/4.0/>\n\n')
elif thlang == u'en':
file.write(u'# Copyright (C) %s Xavier Robert <xavier.robert***@***ird.fr>\n' %(str(datetime.datetime.now().year)))
@@ -429,7 +429,7 @@ def write_thmaps(file, cavename = u'cave', icomments = True, thlang = 'en'):
if icomments:
if thlang == u'fr':
file.write(u'# Copyright (C) %s Xavier Robert <xavier.robert***@***ird.fr>\n' %(str(datetime.datetime.now().year)))
file.write(u'# Ce travail est sous la licence Creative Commons Attribution-ShareAlike-NonCommecial :\n')
file.write(u'# Ce travail est sous la License Creative Commons Attribution-ShareAlike-NonCommecial :\n')
file.write(u'# <http://creativecommons.org/licenses/by-nc-sa/4.0/>\n\n')
elif thlang == u'en':
file.write(u'# Copyright (C) %s Xavier Robert <xavier.robert***@***ird.fr>\n' %(str(datetime.datetime.now().year)))
@@ -498,7 +498,7 @@ def write_thcoords(file, cavename = u'cave', coordinates = None, coordsyst = Non
if icomments:
if thlang == u'fr':
file.write(u'# Copyright (C) %s Xavier Robert <xavier.robert***@***ird.fr>\n' %(str(datetime.datetime.now().year)))
file.write(u'# Ce travail est sous la licence Creative Commons Attribution-ShareAlike-NonCommecial :\n')
file.write(u'# Ce travail est sous la License Creative Commons Attribution-ShareAlike-NonCommecial :\n')
file.write(u'# <http://creativecommons.org/licenses/by-nc-sa/4.0/>\n\n')
elif thlang == u'en':
file.write(u'# Copyright (C) %s Xavier Robert <xavier.robert***@***ird.fr>\n' %(str(datetime.datetime.now().year)))
@@ -16,7 +16,7 @@ The different arguments are described.
xavier.robert@ujf-grenoble.fr
(c) licence CCby-nc : http://creativecommons.org/licenses/by-nc/3.0/ 2015
(c) License CCby-nc : http://creativecommons.org/licenses/by-nc/3.0/ 2015
"""
+2 -2
View File
@@ -152,7 +152,7 @@ def tro2th(fle_tro_fnme = None, fle_th_fnme = None,
Author: Xavier Robert, Lima 2016/06/27
Licence: CCby-nc
License: CCby-nc
"""
if thlang in [u'fr', u'FR', u'Fr', u'fR']: thlang = u'fr'
@@ -388,7 +388,7 @@ def convert_tro(fle_tro_fnme, fle_tro_encoding=None, fle_th_fnme = None, cavenam
Author: Xavier Robert, Lima 2016/06/27
Licence: CCby-nc
License: CCby-nc
"""
#from codecs import open
@@ -53,7 +53,7 @@ def read_vtopo_header(lines):
Author: Xavier Robert, Lima 2016/06/27
Licence: CCby-nc
License: CCby-nc
"""
# coord_dict: French Lambert system. To find number of your system, see extern/proj4/nad/epsg
@@ -122,7 +122,7 @@ def read_settings(line):
Author: Xavier Robert, Lima 2016/06/27
Licence: CCby-nc
License: CCby-nc
"""
# Question: Do we have to update the code in function of the vtopo version number?
param = line[6:].rstrip(u'\n\r').split(u' ')
@@ -173,7 +173,7 @@ def read_data(lines, settings, j, iline):
Author: Xavier Robert, Lima 2016/06/27
Licence: CCby-nc
License: CCby-nc
"""
data = []
@@ -216,7 +216,7 @@ def convert_text(lines):
Author: Xavier Robert, Lima 2016/06/27
Licence: CCby-nc
License: CCby-nc
"""
dictcaract ={'\xe8' : u'è',
'\xe0' : u'à',