DOI-USGS / sfrmaker

Rapid construction of MODFLOW SFR Package input from hydrography data.
Other
38 stars 20 forks source link

bombing when providing a list of NHDPlus files #101

Open mnfienen opened 3 years ago

mnfienen commented 3 years ago

I pulled today which brought me up to 2e44c8e6a9. For some reason, SFRmaker can't parse a list of multiple folders for NHDPlus, although that worked in the past.

traceback is like:


    epsg=epsg, proj_str=proj_str, prjfile=prjfile)
  File "/Users/mnfienen/Documents/GIT/SFRmaker/sfrmaker/nhdplus_utils.py", line 116, in load_nhdplus_v2
    crs = get_shapefile_crs(NHDFlowlines)
  File "/Users/mnfienen/Documents/GIT/gis-utils/gisutils/shapefile.py", line 385, in get_shapefile_crs
    basename, ext = os.path.splitext(shapefile)
  File "/Users/mnfienen/miniconda3/lib/python3.7/posixpath.py", line 122, in splitext
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not list```
mnfienen commented 3 years ago

FWIW - when I reverted to c176c1e this wasn't a problem.....so got introduced somewhere between those commits

aleaf commented 1 year ago

@mnfienen are you still experiencing this issue?