| forvinself.vertices.values(): |
| # all vertices for simple graph |
| simplefile.write(v.unique_name+' '+str(v.lat)+' '+str(v.lng)+'\n') |
| v.s_vertex_num=sv |
| sv+=1 |
| # visible vertices... |
| ifv.visibility>=1: |
| # for traveled graph, |
| travelfile.write(v.unique_name+' '+str(v.lat)+' '+str(v.lng)+'\n') |
| v.t_vertex_num=tv |
| tv+=1 |
| ifv.visibility==2: |
| # and for collapsed graph |
| collapfile.write(v.unique_name+' '+str(v.lat)+' '+str(v.lng)+'\n') |
| v.c_vertex_num=cv |
| cv+=1 |
| forvinmv: |
| # all vertices, for simple graph |
| simplefile.write(v.unique_name+' '+str(v.lat) +' '+str(v.lng) +'\n') |
| v.s_vertex_num=sv |
| sv+=1 |
| # visible vertices |
| ifv.visibility>=1: |
| # for traveled graph |
| travelfile.write(v.unique_name+' '+str(v.lat) +' '+str(v.lng) +'\n') |
| v.t_vertex_num=tv |
| tv+=1 |
| ifv.visibility==2: |
| # for collapsed graph |
| collapfile.write(v.unique_name+' '+str(v.lat) +' '+str(v.lng) +'\n') |
| v.c_vertex_num=cv |
| cv+=1 |
Would it save a noticeable amount of time to store & retrieve v.unique_name + ' ' + str(v.lat) + ' ' + str(v.lng) + '\n' rather than calculate it 3 times?
| # printable string |
| def__str__(self): |
| returnself.unique_name |
doesn't appear to be used. We could repurpose it. Or not.
DataProcessing/siteupdate/python-teresco/siteupdate.py
Lines 2310 to 2325 in 79bf1cd
DataProcessing/siteupdate/python-teresco/siteupdate.py
Lines 2394 to 2409 in 79bf1cd
Would it save a noticeable amount of time to store & retrieve
v.unique_name + ' ' + str(v.lat) + ' ' + str(v.lng) + '\n'rather than calculate it 3 times?DataProcessing/siteupdate/python-teresco/siteupdate.py
Lines 1733 to 1735 in 79bf1cd
doesn't appear to be used. We could repurpose it. Or not.