deeplycloudy / glmtools

GOES-R Geostationary Lightning Mapper Tools
BSD 3-Clause "New" or "Revised" License
63 stars 34 forks source link

Move lmatools import to avoid matplotlib dependency #53

Closed djhoese closed 5 years ago

djhoese commented 5 years ago

This was the last change I needed so I could avoid having matplotlib installed to generated the gridded files. The lmatools.lasso.energy_stats module does a couple matplotlib imports including some from stormdrain. This PR moves the import of TimeSeriesPolygonLassoFilter to the class that it is used in since it seemed like the easiest fix. I couldn't figure out a simpler way of doing it with out refactoring glmtools or lmatools.

deeplycloudy commented 5 years ago

Thanks, @djhoese!