CSIRO-Precision-Agriculture / pyprecag

A suite of tools for Precision Agriculture
Other
21 stars 9 forks source link

USA date format breaks logging in t-test Analysis #42

Open PitchPoler opened 3 years ago

PitchPoler commented 3 years ago

Running Strip Trial t-test Analysis using QGIS 3.16.2 and PAT 1.0.3, get the following error: "unsupported format string passed to datetime.timedelta.format"

image

It is coming from the LOGGING code blocks called in at least the processing.py and raster_ops.py modules. I assume it is because of the USA system date format on my rig. I can't find a way to change internal QGIS date formats globally.

My fix was to disable PAT debugging by unticking the flag in PAT > Settings

cratcliff commented 3 years ago

@PitchPoler thanks sending in the error, its not to do with USA dates, but just needs to be converted to a string. This has been transfered to the pyprecag github repository and will be released soon.