List input parameters one per line in log file
Closed this issue · 4 comments
Tool input parameters are currently reported in log files as:
Parameters: ['C:\\Users\\Sandeep\\Desktop\\Sumatra_GIS\\Linkage_Mapper_2_0_0\\Linkage_Mapper_2_0_0\\toolbox\\scripts\\lm_master.py', 'C:\\Users\\Sandeep\\Desktop\\BarrierMappingNew', 'SourceTest', 'Source', 'clipped_rast1.tif', 'true', 'true', 'Cost-Weighted & Euclidean', 'C:\\Users\\Sandeep\\Desktop\\BarrierMappingNew\\distances_SourceTest.txt', 'true', 'true', 'false', '4', 'Cost-Weighted', 'true', 'true', 'true', '200000', '#', '#', '#', '#', '#']
For clarity, list in a manner something like this:
Input Parameters
PROJECT DIR: C:\\Users\\Sandeep\\Desktop\\BarrierMappingNew
CORE LAYER: SourceTest
RESISTANCE LAYER: clipped_rast1.tif
...
To meet the important use case I outlined above, the example would look like this:
Input Parameters (csv)
PROJECT DIR,C:\Users\Sandeep\Desktop\BarrierMappingNew
CORE LAYER,SourceTest
RESISTANCE LAYER,clipped_rast1.tif
...
If that is too ugly, I can add a search and replace to my workflow of getting this into a master table, Making it 7 steps instead of 6. Since : is already used by directory path values, making search and replace problematic, we can use = as follows
Input Parameters (csv)
PROJECT DIR = C:\Users\Sandeep\Desktop\BarrierMappingNew
CORE LAYER = SourceTest
RESISTANCE LAYER = clipped_rast1.tif
I'm happy with either one.
My vote is still for colon space. I find it more readable. That said, @johngallo you can use any delimiter for your use case. Just use the Text to Columns feature. See Excel 2013 – How to paste comma-separated values.