gtkfi / ArcSDM

Spatial Data Modeler 6 for ArcGIS Pro
32 stars 18 forks source link

Folder path problems in the Logistic Regression tool. #137

Closed artolaiho closed 3 years ago

artolaiho commented 3 years ago
  1. os.path.basename(Input_Raster[: 9]) returns an empty string if the root folder (C:\xxxxx) name of Input Raster contains only five characters or less. An empty string causes the tool to crash on ERROR 999999: Error executing function. The table name is invalid. Failed to execute (Lookup).
  2. Fortran application sdmlr.exe don't work if length of File System Scratch Workspace name is more than 51 characters. Error messages: (path)logpol.tba does not exist. Error in case.dat or param.dat.
  3. Maximum length of Evidential Theme on LRcoeff raster is 256 characters. If Input Raster folder path is too long, code tries to write more than 256 characters to that field. Error messages: ERROR 999999: Error executing function. The row contains a bad value. [LR_coeff]. The row contains a bad value. [Theme]. in Execute vTabLR2rows.InsertRow(vTabLR2row)

I repaired these lines and I will update logisticregression.py soon (and maybe also grand_wofe_lr.py) when I have tested them.

artolaiho commented 3 years ago

Calculate Weights, Calculate Response, Logistic Regression, Grand Wofe and ArcSDM.pyt fixed. Download ArcSDM 5.03.