zkwurst / GSoC2017-GRASS-GIS

GNU General Public License v2.0
2 stars 1 forks source link

fix resolution #10

Closed petrasovaa closed 7 years ago

petrasovaa commented 7 years ago

I don't want to commit, so here are just couple things:

this is my mistake, instead of:

    if gscript.locn_is_latlong:

should be:

    if gscript.locn_is_latlong():

Then in this code:

total_size = sum(dwnld_size)
len_total_size = len(str(total_size))
if 6 < len_total_size < 10:
    total_size_float = total_size * 1e-6
    total_size_str = str("{0:.2f}".format(total_size_float) + " MB")
elif len_total_size >= 10:
    total_size_float = total_size * 1e-9
    total_size_str = str("{0:.2f}".format(total_size_float) + " GB")

total_size_str is undefined when you have all zip files already downloaded, but it is used later, so that needs to be handled

petrasovaa commented 7 years ago

I think this is all fixed now