Skip to content

Commit

Permalink
fix capitalization for county names
Browse files Browse the repository at this point in the history
  • Loading branch information
pluflou committed Jul 18, 2024
1 parent 81e72d5 commit 9d8d0f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sg2t/io/loadshapes/nrel/nbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def get_county_gisjoin_name(self, county_name=None, state=None, county_gisjoin=N
if county_name and state:
try:
return \
self.df_geoinfo[(self.df_geoinfo["county_name"] == county_name.capitalize()) & \
self.df_geoinfo[(self.df_geoinfo["county_name"] == county_name.title()) & \
(self.df_geoinfo["state_abbreviation"] == state.upper())].index[0]
except IndexError as e:
print(e)
Expand Down

0 comments on commit 9d8d0f6

Please sign in to comment.