pombreda / pysal

Automatically exported from code.google.com/p/pysal
Other
0 stars 0 forks source link

w2gal_file does not work #227

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

wc = pysal.knnW_from_shapefile(pysal.examples.get_path('NAT.shp'))
out = open('temp_out.gal','w')
pysal.weights.user.w2gal_file(wc, out)
out.close()

What is the expected output? What do you see instead?

temp_out.gal is written but empty.  The function w2gal_file is incomplete.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by phil.stp...@gmail.com on 29 Oct 2012 at 11:12

GoogleCodeExporter commented 9 years ago
w2gal_file was added by Serge in r1373.

Was this a mistake?

Original comment by schmi...@gmail.com on 2 Nov 2012 at 5:31

GoogleCodeExporter commented 9 years ago
pysal.open(filename,'w').write(w)

Original comment by phil.stp...@gmail.com on 2 Nov 2012 at 8:42

GoogleCodeExporter commented 9 years ago
Was added by accident,
removed w2gal_file in r1381

Original comment by schmi...@gmail.com on 2 Nov 2012 at 8:44