npri-tools / npri

A Python package providing easy-to-use code that returns recently reported emissions from facilities, socio-economic information for places, emissions records for specific companies and industries, and emissions trends over time
GNU General Public License v3.0
0 stars 0 forks source link

mapping functions expect a list #1

Open ericnost opened 10 months ago

ericnost commented 10 months ago

For instance, the following will return a blank map:

fsas = npri.Facilities(place="N1E")
fsas.show_map()

even though fsas.data is populated. The following works:

fsas = npri.Facilities(place=["N1E"])
fsas.show_map()
ericnost commented 10 months ago

The show_data_map() and show_map() functions should be able to take in single items not in lists. This may be a problem at the level of the SpatialTable class rather than the mapping functions.