mauroalberti / qProf

Python plugin for QGIS, to create topographic and geological profiles
GNU General Public License v3.0
25 stars 3 forks source link

New error using qProf: ValueError: max() arg is an empty sequence #8

Closed lluisvicens closed 5 years ago

lluisvicens commented 6 years ago

Dear Mauro, In the same context of my previous issue, another student get a new error trying to get a topographic profile based on a DEM and a vector line (route). The error information is attached as an image.

By the way, I've recorded a video about the process that the students should do to get the topographic profile. This is the exact process that takes me less than a minute to do, but some of them have to wait for dozens of minutes to do it... Is it a problem of RAM/Processor?

Thanks in advance for your time and help. Cheers, Lluí valueerror

mauroalberti commented 6 years ago

I reproduced the error, after some google search, by trying to plot a figure without any content (i.e., no topographic profile to draw), see (hopefully) in figure below.

image

This matplotlib-related exception should have been fixed in matplotlib in July 2017, so possibly the matplotlibs that we are using are older.

I could handle better this particular case in the next release (not planned very soon).

With regards to the problem of some of your students, IF all the conditions between you and them are equal (same DEM, same trace, same QGIS software and project settings, same OS) apart from the hardware, the problems could be related to the memory amount available for the calculations.. But it should impact only when using large DEMs.

ciao, mauro

lluisvicens commented 6 years ago

Thanks Mauro for your answer. I will make her check again her data to verify that they are valid datatsets. Ciao, Lluís