I've been trying to get the dotest() script running in its entirety for the past day and have been having issues. Pull Request https://github.com/dbuscombe-usgs/PyHum/pull/67 fixed some of them, but I'm now hitting the following error:
(pyhum) myuser@mycomputer: ~$ python -c "import PyHum; PyHum.dotest()"
Directory not copied. Error: [Errno 17] File exists: '/home/myuser/pyhum_test'
Input file is /home/myuser/pyhum_test/test.DAT
Son files are in /home/myuser/pyhum_test
cs2cs arguments are epsg:26949
Draft: 0.3
Celerity of sound: 1450.0 m/s
Port and starboard will be flipped
Transducer length is 0.108 m
Bed picking is auto
Only 1 chunk will be produced
Data is from the 998 series
Bearing will be calculated from coordinates
Bearing will be filtered
Checking the epsg code you have chosen for compatibility with Basemap ...
... epsg code compatible
WARNING: Because files have to be read in byte by byte,
this could take a very long time ...
Processing took 17.2486329079seconds to analyse
Done!
Input file is /home/myuser/pyhum_test/test.DAT
Sonar file path is /home/myuser/pyhum_test
Max. transducer power is 1000.0 W
pH is 7.0
Temperature is 10.0
Processing took 11.959321022seconds to analyse
Done!
Input file is /home/myuser/pyhum_test/test.DAT
Sonar file path is /home/myuser/pyhum_test
Window is 31 square pixels
Threshold dissimilarity (shadow is <) is 3
Threshold correlation (shadow is <) is 0
Threshold contrast (shadow is <) is 6
Threshold energy (shadow is >) is 0
Threshold mean intensity (shadow is <) is 4
Exception RuntimeError: RuntimeError('main thread is not in main loop',) in <bound method PhotoImage.del of <Tkinter.PhotoImage instance at 0x7f875673b9e0>> ignored
Tcl_AsyncDelete: async handler deleted by the wrong thread
Aborted (core dumped)
Based on the variables that are being printed out prior to the error, this error seems to be occurring somewhere in or after the call to the rmshadows(.) function, and some Google-fu suggests this may be a problem with matplotlib. Unfortunately, my experience with Python is extremely limited, so I'm not capable of pinpointing the issue much further or coming up with a fix. Any help would be appreciated!
I've been trying to get the dotest() script running in its entirety for the past day and have been having issues. Pull Request https://github.com/dbuscombe-usgs/PyHum/pull/67 fixed some of them, but I'm now hitting the following error:
Based on the variables that are being printed out prior to the error, this error seems to be occurring somewhere in or after the call to the
rmshadows(.)
function, and some Google-fu suggests this may be a problem with matplotlib. Unfortunately, my experience with Python is extremely limited, so I'm not capable of pinpointing the issue much further or coming up with a fix. Any help would be appreciated!