mirror of
https://github.com/Alex38Lyon/Synthese-PSM_LARRA.git
synced 2026-06-01 22:00:53 +00:00
Debug pyCreateTh
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -199,10 +199,10 @@ def load_config(args, configIni="config.ini"):
|
||||
|
||||
survey_keys = {
|
||||
'Author': 'Author',
|
||||
'Copyright1': None,
|
||||
'Copyright2': None,
|
||||
'Copyright3': None,
|
||||
'Copyright_Short': 'CopyrightShort',
|
||||
'Copyright1': 'Copyright',
|
||||
'Copyright2': 'Copyright',
|
||||
'Copyright3': 'Copyright',
|
||||
'Copyright_Short': None,
|
||||
'map_comment': 'mapComment',
|
||||
'club': 'club',
|
||||
'thanksto': 'thanksto',
|
||||
@@ -221,6 +221,7 @@ def load_config(args, configIni="config.ini"):
|
||||
config['Survey_Data']['Copyright2'],
|
||||
config['Survey_Data']['Copyright3']
|
||||
])
|
||||
global_data.CopyrightShort = config['Survey_Data']['Copyright_Short']
|
||||
elif attr:
|
||||
setattr(global_data, attr, config['Survey_Data'][key])
|
||||
|
||||
@@ -232,7 +233,8 @@ def load_config(args, configIni="config.ini"):
|
||||
'survey_prefix_name': 'SurveyPrefixName',
|
||||
'shot_lines_in_th2_files': ('linesInTh2', lambda x: x.lower() == 'true'),
|
||||
'station_name_in_th2_files': ('stationNamesInTh2', lambda x: x.lower() == 'true'),
|
||||
'kSmooth': ('kSmooth', float),
|
||||
'wall_lines_in_th2_files': ('wallLinesInTh2', lambda x: x.lower() == 'true'),
|
||||
'kSmooth': ('kSmooth', float)
|
||||
}
|
||||
|
||||
for key, value in app_keys.items():
|
||||
|
||||
@@ -11,8 +11,8 @@ 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"
|
||||
Copyright = "# Copyright(C) pyCreateTh.py"
|
||||
CopyrightShort = "Licence(C) pyCreateTh.py"
|
||||
mapComment = "Created by pyCreateTh.py"
|
||||
cs = "UTM30"
|
||||
club = "Therion"
|
||||
@@ -28,7 +28,7 @@ therionPath = "C:/Therion/therion.exe"
|
||||
SurveyPrefixName = f"Survey_"
|
||||
linesInTh2 = True
|
||||
stationNamesInTh2 = True
|
||||
wallLineInTh2 = True
|
||||
wallLinesInTh2 = True
|
||||
kSmooth = 0.5
|
||||
XVIScale = 100
|
||||
|
||||
@@ -100,6 +100,7 @@ th2File = """
|
||||
##XTHERION## xth_me_image_insert {insert_XVI}
|
||||
|
||||
{Copyright}
|
||||
|
||||
# File generated by pyCreateTh.py version {version} date: {date}
|
||||
|
||||
# x_min: {X_Min}, x_max: {X_Max} ecart : {X_Max_X_Min}
|
||||
|
||||
Reference in New Issue
Block a user