ucd-cws / PISCES

Software for tracking and analyzing fish species range data
Other
0 stars 2 forks source link

map bind variable bug #57

Closed nickrsan closed 10 years ago

nickrsan commented 10 years ago

Original report by AndyB (Bitbucket: AndyB, GitHub: AndyB).


Unable to generate unlimited or main range maps after the changes to the bind variable.

Traceback (most recent call last): File "C:\Users\ambell\Documents\PISCES\scripts\PISCES\tbx_generate_map.py", line 79, in map_objects = mapping.begin("all", return_maps=True) # run the maps and get the objects File "C:\Users\ambell\Documents\PISCES\scripts\PISCES\mapping.py", line 676, in begin all_maps[i].populate(mapping_cursor) File "C:\Users\ambell\Documents\PISCES\scripts\PISCES\mapping.py", line 122, in populate layer.populate(db_cursor) File "C:\Users\ambell\Documents\PISCES\scripts\PISCES\mapping.py", line 581, in populate self.custom_query.process_bind() # for queries where the bind variable is needed multiple times, this replaces {bind} with the variable File "C:\Users\ambell\Documents\PISCES\scripts\PISCES\mapping.py", line 648, in process_bind for i in range(len(self.callback_args)): # TODO: this is a stupid hack and should be replaced TypeError: object of type 'NoneType' has no len()

Failed to execute (GenerateMap2).

nickrsan commented 10 years ago

Original comment by Nicholas Santos (Bitbucket: nickrsan, GitHub: nickrsan).


I see the problem and will fix it right away

nickrsan commented 10 years ago

Original comment by Nicholas Santos (Bitbucket: nickrsan, GitHub: nickrsan).


Resolved by commit 9e08594 - Andy will you give it a try again?